[cfe-commits] r61393 - /cfe/trunk/lib/Sema/SemaExprCXX.cpp

Douglas Gregor dgregor at apple.com
Tue Dec 23 14:05:30 PST 2008


Author: dgregor
Date: Tue Dec 23 16:05:29 2008
New Revision: 61393

URL: http://llvm.org/viewvc/llvm-project?rev=61393&view=rev
Log:
Fix misguided type selection

Modified:
    cfe/trunk/lib/Sema/SemaExprCXX.cpp

Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprCXX.cpp?rev=61393&r1=61392&r2=61393&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaExprCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprCXX.cpp Tue Dec 23 16:05:29 2008
@@ -516,7 +516,7 @@
 
   // 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?





More information about the cfe-commits mailing list