From: Jim Grosbach Date: Mon, 11 Oct 2010 21:41:31 +0000 (+0000) Subject: The assert() should reference to machine instr operand number, too. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a1e2194f03ea56c65a44699c537245284224d8b2;p=oota-llvm.git The assert() should reference to machine instr operand number, too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116243 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp index 13eea6be090..64ea16e362d 100644 --- a/utils/TableGen/CodeEmitterGen.cpp +++ b/utils/TableGen/CodeEmitterGen.cpp @@ -160,10 +160,10 @@ void CodeEmitterGen::run(raw_ostream &o) { // 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.