From: Aaron Ballman Date: Sat, 5 Oct 2013 19:56:07 +0000 (+0000) Subject: Silencing an MSVC warning; SmallSet::count returns a bool instead of a size_t. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6dfc04b4cc5db5f631243d0d8543d1dbc9cd58ed;p=clang Silencing an MSVC warning; SmallSet::count returns a bool instead of a size_t. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192043 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp index aede1809c3..44d457e1e1 100644 --- a/lib/Sema/SemaLookup.cpp +++ b/lib/Sema/SemaLookup.cpp @@ -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.