[llvm-commits] [llvm] r139286 - /llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp
James Molloy
james.molloy at arm.com
Thu Sep 8 01:12:01 PDT 2011
Author: jamesm
Date: Thu Sep 8 03:12:01 2011
New Revision: 139286
URL: http://llvm.org/viewvc/llvm-project?rev=139286&view=rev
Log:
Fix warning on windows; use of comparison with bool argument.
Modified:
llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp
Modified: llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp?rev=139286&r1=139285&r2=139286&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp Thu Sep 8 03:12:01 2011
@@ -854,7 +854,7 @@
}
o.indent(Indentation) << "if (";
- if (emitPredicateMatch(o, Indentation, Opc) > 0) {
+ if (emitPredicateMatch(o, Indentation, Opc)) {
o << " &&\n";
o.indent(Indentation+4);
}
More information about the llvm-commits
mailing list