Add support for compilers with arg dependent name lookup, contributed by

Bjørn Wennberg


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18628 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-12-08 16:13:53 +00:00
parent 17a213ad8b
commit 6d8dbecff2

View File

@ -656,7 +656,8 @@ static bool setTypeName(const Type *T, char *NameStr) {
// TypeContains - Returns true if Ty directly contains E in it.
//
static bool TypeContains(const Type *Ty, const Type *E) {
return find(Ty->subtype_begin(), Ty->subtype_end(), E) != Ty->subtype_end();
return std::find(Ty->subtype_begin(), Ty->subtype_end(),
E) != Ty->subtype_end();
}
namespace {