mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
The assert() should reference to machine instr operand number, too.
llvm-svn: 116243
This commit is contained in:
parent
0af3659b5d
commit
06a0fb7aff
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user