diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-12-23 22:05:29 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-12-23 22:05:29 +0000 |
commit | 5cc3709b843c799e268f944b7bf9dbdc79cefe8d (patch) | |
tree | 6887da9e5b36cd31278c877c070ea711340f9e5a /lib/Sema/SemaExprCXX.cpp | |
parent | fdfab6b5ee678cd4b6a1c6d01c46ea5d0e3153ed (diff) |
Fix misguided type selection
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprCXX.cpp')
-rw-r--r-- | lib/Sema/SemaExprCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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? |