From 0d76b19919f85ee6b139ec2bf36c9f02df59d100 Mon Sep 17 00:00:00 2001 From: James Molloy Date: Thu, 8 Sep 2011 08:12:01 +0000 Subject: [PATCH] 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 --- utils/TableGen/FixedLenDecoderEmitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/TableGen/FixedLenDecoderEmitter.cpp b/utils/TableGen/FixedLenDecoderEmitter.cpp index 85f3dbfa5f6..61a0d614a47 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); }