mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-28 00:40:54 +00:00
Make sure to use the machine instruction operand number. It doesn't always
map one-to-one with the CodeGenInstruction operand number. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116238 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
12647eb3f5
commit
1a7233f9d0
@ -162,6 +162,8 @@ void CodeEmitterGen::run(raw_ostream &o) {
|
|||||||
if (CGI.hasOperandNamed(VarName, OpIdx)) {
|
if (CGI.hasOperandNamed(VarName, OpIdx)) {
|
||||||
assert (!CGI.isFlatOperandNotEmitted(OpIdx) &&
|
assert (!CGI.isFlatOperandNotEmitted(OpIdx) &&
|
||||||
"Explicitly used operand also marked as not emitted!");
|
"Explicitly used operand also marked as not emitted!");
|
||||||
|
// Get the machine operand number for the indicated operand.
|
||||||
|
OpIdx = CGI.OperandList[OpIdx].MIOperandNo;
|
||||||
} else {
|
} else {
|
||||||
/// If this operand is not supposed to be emitted by the
|
/// If this operand is not supposed to be emitted by the
|
||||||
/// generated emitter, skip it.
|
/// generated emitter, skip it.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user