]> granicus.if.org Git - clang/commitdiff
Silence MSVC warning.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 10 Jan 2010 19:57:50 +0000 (19:57 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 10 Jan 2010 19:57:50 +0000 (19:57 +0000)
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

lib/Frontend/RewriteObjC.cpp

index a75835edc9a2a46fbb01629b8094edb9312ef61e..3000d7760554cd25334e2264e0728a3f85a85aad 100644 (file)
@@ -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_";