[cfe-commits] r63662 - /cfe/trunk/lib/Sema/SemaLookup.cpp

Chris Lattner sabre at nondot.org
Tue Feb 3 13:29:33 PST 2009


Author: lattner
Date: Tue Feb  3 15:29:32 2009
New Revision: 63662

URL: http://llvm.org/viewvc/llvm-project?rev=63662&view=rev
Log:
silence some warnings.

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

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

==============================================================================
--- cfe/trunk/lib/Sema/SemaLookup.cpp (original)
+++ cfe/trunk/lib/Sema/SemaLookup.cpp Tue Feb  3 15:29:32 2009
@@ -258,7 +258,7 @@
       FBegin = FoundOverloaded->function_begin(),
       FEnd = FoundOverloaded->function_end();
     // FIXME: This is O(n^2)!
-    for (DI ; DI < DEnd; ++DI) {
+    for (; DI < DEnd; ++DI) {
       FunctionDecl *Fun = dyn_cast<FunctionDecl>(*DI);
       if (Fun && (std::find(FBegin, FEnd, Fun) != FEnd)) { /* Skip.*/  }
       else DEnd = std::remove(DI, DEnd, *DI);
@@ -1129,7 +1129,7 @@
     Decl **DI = reinterpret_cast<Decl **>(Result.First),
        **DEnd = reinterpret_cast<Decl **>(Result.Last);
 
-    for (DI; DI != DEnd; ++DI)
+    for (; DI != DEnd; ++DI)
       Diag((*DI)->getLocation(), diag::note_ambiguous_candidate)
         <<  getQualifiedName(*DI);
 





More information about the cfe-commits mailing list