summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2011-09-08 08:12:01 +0000
committerJames Molloy <james.molloy@arm.com>2011-09-08 08:12:01 +0000
commit21d293a37fab73a657c7af1224a9286504ce054b (patch)
treed35b6c66ef15f61e43c4faf64d676e38d56aacf2 /llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
parent2550ba2a271b92af80a94f4192f524d6fa10993d (diff)
downloadbcm5719-llvm-21d293a37fab73a657c7af1224a9286504ce054b.tar.gz
bcm5719-llvm-21d293a37fab73a657c7af1224a9286504ce054b.zip
Fix warning on windows; use of comparison with bool argument.
llvm-svn: 139286
Diffstat (limited to 'llvm/utils/TableGen/FixedLenDecoderEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/FixedLenDecoderEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
index 85f3dbfa5f6..61a0d614a47 100644
--- a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
+++ b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
@@ -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);
}
OpenPOWER on IntegriCloud