From 6dfc04b4cc5db5f631243d0d8543d1dbc9cd58ed Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Sat, 5 Oct 2013 19:56:07 +0000 Subject: [PATCH] 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 --- lib/Sema/SemaLookup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.40.0