OSDN Git Service

[ADT] Make iterable SmallVector template overrides more specific
authorFrancis Ricci <francisjricci@gmail.com>
Fri, 9 Jun 2017 20:31:53 +0000 (20:31 +0000)
committerFrancis Ricci <francisjricci@gmail.com>
Fri, 9 Jun 2017 20:31:53 +0000 (20:31 +0000)
commit180505542004ed2cb6624c50b3dddf1790e93dd5
tree021896214340502925a8bc48a2f38708276454ff
parent5d860d251edd2336d8542c7e60b062186dff1258
[ADT] Make iterable SmallVector template overrides more specific

Summary:
This prevents the iterator overrides from being selected in
the case where non-iterator types are used as arguments, which
is of particular importance in cases where other overrides with
identical types exist.

Reviewers: dblaikie, bkramer, rafael

Subscribers: llvm-commits, efriedma

Differential Revision: https://reviews.llvm.org/D33919

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305105 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/SmallVector.h
unittests/ADT/SmallVectorTest.cpp