projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5afc190
)
Make sure to handle the case where emitPredicateMatch returns false. Noticed by...
author
Eli Friedman
<eli.friedman@gmail.com>
Thu, 8 Sep 2011 21:00:31 +0000
(21:00 +0000)
committer
Eli Friedman
<eli.friedman@gmail.com>
Thu, 8 Sep 2011 21:00:31 +0000
(21:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139317
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/FixedLenDecoderEmitter.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/FixedLenDecoderEmitter.cpp
b/utils/TableGen/FixedLenDecoderEmitter.cpp
index 61a0d614a47ae276323f59f3758e51a4054efe15..33c97c9c2df9af33ebf94bfdd98c32444aaa4bc9 100644
(file)
--- a/
utils/TableGen/FixedLenDecoderEmitter.cpp
+++ b/
utils/TableGen/FixedLenDecoderEmitter.cpp
@@
-818,7
+818,8
@@
bool FilterChooser::emitSingletonDecoder(raw_ostream &o, unsigned &Indentation,
// If we have matched all the well-known bits, just issue a return.
if (Size == 0) {
o.indent(Indentation) << "if (";
- emitPredicateMatch(o, Indentation, Opc);
+ if (!emitPredicateMatch(o, Indentation, Opc))
+ o << "1";
o << ") {\n";
o.indent(Indentation) << " MI.setOpcode(" << Opc << ");\n";
std::vector<OperandInfo>& InsnOperands = Operands[Opc];