]> granicus.if.org Git - clang/commitdiff
Remove redundant test
authorDouglas Gregor <dgregor@apple.com>
Wed, 27 Oct 2010 14:20:34 +0000 (14:20 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 27 Oct 2010 14:20:34 +0000 (14:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117446 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaLookup.cpp

index e36642cb7cc2b77fa7170233f8dacc2b3cba8f9e..9d65891a0ffb59567f5b9cf311914932503c9c7e 100644 (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();