]> granicus.if.org Git - clang/commitdiff
silence some warnings.
authorChris Lattner <sabre@nondot.org>
Tue, 3 Feb 2009 21:29:32 +0000 (21:29 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 3 Feb 2009 21:29:32 +0000 (21:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63662 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaLookup.cpp

index 39b782c0162ea148c60a5309e01abefb028b2207..c8ecc171fd587c779dd427b2e6f039f4b46945bc 100644 (file)
@@ -258,7 +258,7 @@ MergeLookupResults(ASTContext &Context, LookupResultsTy &Results) {
       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 @@ bool Sema::DiagnoseAmbiguousLookup(LookupResult &Result, DeclarationName Name,
     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);