[cfe-commits] r117446 - /cfe/trunk/lib/Sema/SemaLookup.cpp

Douglas Gregor dgregor at apple.com
Wed Oct 27 07:20:35 PDT 2010


Author: dgregor
Date: Wed Oct 27 09:20:34 2010
New Revision: 117446

URL: http://llvm.org/viewvc/llvm-project?rev=117446&view=rev
Log:
Remove redundant test

Modified:
    cfe/trunk/lib/Sema/SemaLookup.cpp

Modified: cfe/trunk/lib/Sema/SemaLookup.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaLookup.cpp?rev=117446&r1=117445&r2=117446&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaLookup.cpp (original)
+++ cfe/trunk/lib/Sema/SemaLookup.cpp Wed Oct 27 09:20:34 2010
@@ -3188,7 +3188,7 @@
   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();





More information about the cfe-commits mailing list