aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-12-08 16:13:53 +0000
committerChris Lattner <sabre@nondot.org>2004-12-08 16:13:53 +0000
commit6d8dbecff2d2c7aeb509db12e3029b1f3882a280 (patch)
treedd2836cb075ec4b1e1b21010288ac2948da15458
parent17a213ad8b095f6372c1d5f8231a7dbe6e262b08 (diff)
downloadexternal_llvm-6d8dbecff2d2c7aeb509db12e3029b1f3882a280.zip
external_llvm-6d8dbecff2d2c7aeb509db12e3029b1f3882a280.tar.gz
external_llvm-6d8dbecff2d2c7aeb509db12e3029b1f3882a280.tar.bz2
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
-rw-r--r--lib/AsmParser/llvmAsmParser.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y
index 070e978..75b7ff5 100644
--- a/lib/AsmParser/llvmAsmParser.y
+++ b/lib/AsmParser/llvmAsmParser.y
@@ -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 {