From: Benjamin Kramer Date: Sun, 10 Jan 2010 19:57:50 +0000 (+0000) Subject: Silence MSVC warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1211a71912f263f6991eebfc27a8421a8800b9ec;p=clang Silence MSVC warning. RewriteObjC.cpp(4419) : warning C4804: '>' : unsafe use of type 'bool' in operation git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93124 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/RewriteObjC.cpp b/lib/Frontend/RewriteObjC.cpp index a75835edc9..3000d77605 100644 --- a/lib/Frontend/RewriteObjC.cpp +++ b/lib/Frontend/RewriteObjC.cpp @@ -4416,7 +4416,7 @@ void RewriteObjC::RewriteBlockPointerDecl(NamedDecl *ND) { std::string RewriteObjC::SynthesizeByrefCopyDestroyHelper(VarDecl *VD, int flag) { std::string S; - if (CopyDestroyCache.count(flag) > 0) + if (CopyDestroyCache.count(flag)) return S; CopyDestroyCache.insert(flag); S = "static void __Block_byref_id_object_copy_";