Remove redundant test

llvm-svn: 117446
This commit is contained in:
Douglas Gregor 2010-10-27 14:20:34 +00:00
parent b00c2144b3
commit af1daa9854
1 changed files with 1 additions and 1 deletions

View File

@ -3188,7 +3188,7 @@ DeclarationName Sema::CorrectTypo(LookupResult &Res, Scope *S, CXXScopeSpec *SS,
unsigned ED = Consumer.getBestEditDistance();
if (ED > 0 && Typo->getName().size() / ED < 3) {
// If this was an unqualified lookup, note that no correction was found.
if (IsUnqualifiedLookup && ED > 0)
if (IsUnqualifiedLookup)
(void)UnqualifiedTyposCorrected[Typo];
return DeclarationName();