summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-08-09 23:05:23 +0000
committerOwen Anderson <resistor@mac.com>2011-08-09 23:05:23 +0000
commitecc4ffc9414c90b205c54f6851b4a08aaec4f366 (patch)
treef24d23cb4a5653ab682aa5fb8e2bebfc23ee0963
parent59b66883eacbc62a09c09f08bcbfdce7af46cf31 (diff)
downloadbcm5719-llvm-ecc4ffc9414c90b205c54f6851b4a08aaec4f366.tar.gz
bcm5719-llvm-ecc4ffc9414c90b205c54f6851b4a08aaec4f366.zip
Fix an oversight in the FixedLenDecoderEmitter where we weren't correctly checking the success result of custom decoder hooks on singleton decodings.
llvm-svn: 137171
-rw-r--r--llvm/utils/TableGen/FixedLenDecoderEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
index a262394d5b6..4ccb9c42db0 100644
--- a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
+++ b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
@@ -821,8 +821,8 @@ bool FilterChooser::emitSingletonDecoder(raw_ostream &o, unsigned &Indentation,
I = InsnOperands.begin(), E = InsnOperands.end(); I != E; ++I) {
// If a custom instruction decoder was specified, use that.
if (I->numFields() == 0 && I->Decoder.size()) {
- o.indent(Indentation) << " " << I->Decoder
- << "(MI, insn, Address, Decoder);\n";
+ o.indent(Indentation) << " if (!" << I->Decoder
+ << "(MI, insn, Address, Decoder)) return false;\n";
break;
}
OpenPOWER on IntegriCloud