diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-03 21:29:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-03 21:29:32 +0000 |
commit | 48458d214c21401aa120e432a434f8ffd4e76a82 (patch) | |
tree | 479cd838e6a1ac59f7792dc399d0e7652db24749 /lib/Sema/SemaLookup.cpp | |
parent | 0eb59312c72bb5e0f3c0992085ad700fbd7c6e48 (diff) |
silence some warnings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63662 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaLookup.cpp')
-rw-r--r-- | lib/Sema/SemaLookup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp index 39b782c016..c8ecc171fd 100644 --- a/lib/Sema/SemaLookup.cpp +++ b/lib/Sema/SemaLookup.cpp @@ -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); |