]> granicus.if.org Git - clang/commitdiff
Fix misguided type selection
authorDouglas Gregor <dgregor@apple.com>
Tue, 23 Dec 2008 22:05:29 +0000 (22:05 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 23 Dec 2008 22:05:29 +0000 (22:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61393 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExprCXX.cpp

index 9ffa6ae82fb5124a6ada5d1edbc1dca162aaa113..d367a91aa5d9b29318209fdcf6582df1463d9d4a 100644 (file)
@@ -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?