[llvm-commits] [llvm] r116243 - /llvm/trunk/utils/TableGen/CodeEmitterGen.cpp

Jim Grosbach grosbach at apple.com
Mon Oct 11 14:41:31 PDT 2010


Author: grosbach
Date: Mon Oct 11 16:41:31 2010
New Revision: 116243

URL: http://llvm.org/viewvc/llvm-project?rev=116243&view=rev
Log:
The assert() should reference to machine instr operand number, too.

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

Modified: llvm/trunk/utils/TableGen/CodeEmitterGen.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeEmitterGen.cpp?rev=116243&r1=116242&r2=116243&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeEmitterGen.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeEmitterGen.cpp Mon Oct 11 16:41:31 2010
@@ -160,10 +160,10 @@
               // order.
               unsigned OpIdx;
               if (CGI.hasOperandNamed(VarName, OpIdx)) {
-                assert (!CGI.isFlatOperandNotEmitted(OpIdx) &&
-                        "Explicitly used operand also marked as not emitted!");
                 // Get the machine operand number for the indicated operand.
                 OpIdx = CGI.OperandList[OpIdx].MIOperandNo;
+                assert (!CGI.isFlatOperandNotEmitted(OpIdx) &&
+                        "Explicitly used operand also marked as not emitted!");
               } else {
                 /// If this operand is not supposed to be emitted by the
                 /// generated emitter, skip it.





More information about the llvm-commits mailing list