Fix warning on windows; use of comparison with bool argument.
authorJames Molloy <james.molloy@arm.com>
Thu, 8 Sep 2011 08:12:01 +0000 (08:12 +0000)
committerJames Molloy <james.molloy@arm.com>
Thu, 8 Sep 2011 08:12:01 +0000 (08:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139286 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/FixedLenDecoderEmitter.cpp

index 85f3dbfa5f606efb1b2682aa3e5d299bcc7e4dd5..61a0d614a47ae276323f59f3758e51a4054efe15 100644 (file)
@@ -854,7 +854,7 @@ bool FilterChooser::emitSingletonDecoder(raw_ostream &o, unsigned &Indentation,
   }
 
   o.indent(Indentation) << "if (";
-  if (emitPredicateMatch(o, Indentation, Opc) > 0) {
+  if (emitPredicateMatch(o, Indentation, Opc)) {
     o << " &&\n";
     o.indent(Indentation+4);
   }