]> granicus.if.org Git - clang/commitdiff
Silencing an MSVC warning; SmallSet::count returns a bool instead of a size_t.
authorAaron Ballman <aaron@aaronballman.com>
Sat, 5 Oct 2013 19:56:07 +0000 (19:56 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Sat, 5 Oct 2013 19:56:07 +0000 (19:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192043 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaLookup.cpp

index aede1809c3831ed74e832be9fe81151f7e9edaa0..44d457e1e1d406bbac8b76a9d21082e5bd998fc7 100644 (file)
@@ -4098,7 +4098,7 @@ TypoCorrection Sema::CorrectTypo(const DeclarationNameInfo &TypoName,
   // 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.