diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-10-11 21:41:31 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-10-11 21:41:31 +0000 |
commit | e61de930bc9330868662188c202ef38704f98cfc (patch) | |
tree | 1f113f77f66f57f4f4682cb99fd28d2a957fca04 /llvm/utils/TableGen/CodeEmitterGen.cpp | |
parent | 43e92d1162a4e923bd67a366d9ec9ef820eb3665 (diff) | |
download | bcm5719-llvm-e61de930bc9330868662188c202ef38704f98cfc.tar.gz bcm5719-llvm-e61de930bc9330868662188c202ef38704f98cfc.zip |
The assert() should reference to machine instr operand number, too.
llvm-svn: 116243
Diffstat (limited to 'llvm/utils/TableGen/CodeEmitterGen.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeEmitterGen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeEmitterGen.cpp b/llvm/utils/TableGen/CodeEmitterGen.cpp index 13eea6be090..64ea16e362d 100644 --- a/llvm/utils/TableGen/CodeEmitterGen.cpp +++ b/llvm/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. |