summaryrefslogtreecommitdiff
path: root/utils
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
commit0d76b19919f85ee6b139ec2bf36c9f02df59d100 (patch)
treeee4fd2f8655397cd6131c587b7b418f604623aba /utils
parentffe3e7da849a10cdbe8ee4e5b5e243fc48ca0ffd (diff)
downloadllvm-0d76b19919f85ee6b139ec2bf36c9f02df59d100.tar.gz
llvm-0d76b19919f85ee6b139ec2bf36c9f02df59d100.tar.bz2
llvm-0d76b19919f85ee6b139ec2bf36c9f02df59d100.tar.xz
Fix warning on windows; use of comparison with bool argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139286 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/FixedLenDecoderEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/FixedLenDecoderEmitter.cpp b/utils/TableGen/FixedLenDecoderEmitter.cpp
index 85f3dbfa5f..61a0d614a4 100644
--- a/utils/TableGen/FixedLenDecoderEmitter.cpp
+++ b/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);
}