r192043 - Silencing an MSVC warning; SmallSet::count returns a bool instead of a size_t.

Aaron Ballman aaron at aaronballman.com
Sat Oct 5 12:56:07 PDT 2013


Author: aaronballman
Date: Sat Oct  5 14:56:07 2013
New Revision: 192043

URL: http://llvm.org/viewvc/llvm-project?rev=192043&view=rev
Log:
Silencing an MSVC warning; SmallSet::count returns a bool instead of a size_t.

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=192043&r1=192042&r2=192043&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaLookup.cpp (original)
+++ cfe/trunk/lib/Sema/SemaLookup.cpp Sat Oct  5 14:56:07 2013
@@ -4098,7 +4098,7 @@ TypoCorrection Sema::CorrectTypo(const D
   // Abort if typo correction already failed for this specific typo.
   IdentifierSourceLocations::iterator locs = TypoCorrectionFailures.find(Typo);
   if (locs != TypoCorrectionFailures.end() &&
-      locs->second.count(TypoName.getLoc()) > 0)
+      locs->second.count(TypoName.getLoc()))
     return TypoCorrection();
 
   // Don't try to correct the identifier "vector" when in AltiVec mode.





More information about the cfe-commits mailing list