silence some warnings.

llvm-svn: 63662
This commit is contained in:
Chris Lattner 2009-02-03 21:29:32 +00:00
parent ed1ba4fc12
commit 1927267b9d
1 changed files with 2 additions and 2 deletions

View File

@ -258,7 +258,7 @@ MergeLookupResults(ASTContext &Context, LookupResultsTy &Results) {
FBegin = FoundOverloaded->function_begin(), FBegin = FoundOverloaded->function_begin(),
FEnd = FoundOverloaded->function_end(); FEnd = FoundOverloaded->function_end();
// FIXME: This is O(n^2)! // FIXME: This is O(n^2)!
for (DI ; DI < DEnd; ++DI) { for (; DI < DEnd; ++DI) {
FunctionDecl *Fun = dyn_cast<FunctionDecl>(*DI); FunctionDecl *Fun = dyn_cast<FunctionDecl>(*DI);
if (Fun && (std::find(FBegin, FEnd, Fun) != FEnd)) { /* Skip.*/ } if (Fun && (std::find(FBegin, FEnd, Fun) != FEnd)) { /* Skip.*/ }
else DEnd = std::remove(DI, DEnd, *DI); 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), Decl **DI = reinterpret_cast<Decl **>(Result.First),
**DEnd = reinterpret_cast<Decl **>(Result.Last); **DEnd = reinterpret_cast<Decl **>(Result.Last);
for (DI; DI != DEnd; ++DI) for (; DI != DEnd; ++DI)
Diag((*DI)->getLocation(), diag::note_ambiguous_candidate) Diag((*DI)->getLocation(), diag::note_ambiguous_candidate)
<< getQualifiedName(*DI); << getQualifiedName(*DI);