From: Douglas Gregor Date: Tue, 23 Dec 2008 22:05:29 +0000 (+0000) Subject: Fix misguided type selection X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5cc3709b843c799e268f944b7bf9dbdc79cefe8d;p=clang Fix misguided type selection git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61393 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp index 9ffa6ae82f..d367a91aa5 100644 --- a/lib/Sema/SemaExprCXX.cpp +++ b/lib/Sema/SemaExprCXX.cpp @@ -516,7 +516,7 @@ void Sema::DeclareGlobalAllocationFunction(DeclarationName Name, // Check if this function is already declared. { - DeclContext::decl_iterator Alloc, AllocEnd; + DeclContext::lookup_iterator Alloc, AllocEnd; for (llvm::tie(Alloc, AllocEnd) = GlobalCtx->lookup(Context, Name); Alloc != AllocEnd; ++Alloc) { // FIXME: Do we need to check for default arguments here?