[llvm-commits] [llvm] r137171 - /llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp

Owen Anderson resistor at mac.com
Tue Aug 9 16:05:24 PDT 2011


Author: resistor
Date: Tue Aug  9 18:05:23 2011
New Revision: 137171

URL: http://llvm.org/viewvc/llvm-project?rev=137171&view=rev
Log:
Fix an oversight in the FixedLenDecoderEmitter where we weren't correctly checking the success result of custom decoder hooks on singleton decodings.

Modified:
    llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp

Modified: llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp?rev=137171&r1=137170&r2=137171&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp Tue Aug  9 18:05:23 2011
@@ -821,8 +821,8 @@
        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;
     }
 





More information about the llvm-commits mailing list