summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeEmitterGen.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-10-11 21:41:31 +0000
committerJim Grosbach <grosbach@apple.com>2010-10-11 21:41:31 +0000
commite61de930bc9330868662188c202ef38704f98cfc (patch)
tree1f113f77f66f57f4f4682cb99fd28d2a957fca04 /llvm/utils/TableGen/CodeEmitterGen.cpp
parent43e92d1162a4e923bd67a366d9ec9ef820eb3665 (diff)
downloadbcm5719-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.cpp4
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.
OpenPOWER on IntegriCloud