summaryrefslogtreecommitdiff
path: root/utils
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
commita1e2194f03ea56c65a44699c537245284224d8b2 (patch)
tree23febef647f5f01df90e8294180da861ab8064da /utils
parentaf72684eeab67c227e4ee45cc91ae05513102fa8 (diff)
downloadllvm-a1e2194f03ea56c65a44699c537245284224d8b2.tar.gz
llvm-a1e2194f03ea56c65a44699c537245284224d8b2.tar.bz2
llvm-a1e2194f03ea56c65a44699c537245284224d8b2.tar.xz
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
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/CodeEmitterGen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp
index 13eea6be09..64ea16e362 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.