mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Check if operand has an allocated reg before requesting it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14550 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
992dce13ec
commit
4363bdb0e5
@ -564,6 +564,7 @@ void Printer::printMachineInstruction(const MachineInstr *MI) {
|
||||
} else {
|
||||
for (i = 0; i < ArgCount; ++i) {
|
||||
if (i == 1 && ArgCount == 3 && ArgType[2] == PPC32II::Simm16 &&
|
||||
MI->getOperand(1).hasAllocatedReg() &&
|
||||
MI->getOperand(1).getReg() == PPC32::R0) {
|
||||
O << "0";
|
||||
} else {
|
||||
|
@ -564,6 +564,7 @@ void Printer::printMachineInstruction(const MachineInstr *MI) {
|
||||
} else {
|
||||
for (i = 0; i < ArgCount; ++i) {
|
||||
if (i == 1 && ArgCount == 3 && ArgType[2] == PPC32II::Simm16 &&
|
||||
MI->getOperand(1).hasAllocatedReg() &&
|
||||
MI->getOperand(1).getReg() == PPC32::R0) {
|
||||
O << "0";
|
||||
} else {
|
||||
|
@ -564,6 +564,7 @@ void Printer::printMachineInstruction(const MachineInstr *MI) {
|
||||
} else {
|
||||
for (i = 0; i < ArgCount; ++i) {
|
||||
if (i == 1 && ArgCount == 3 && ArgType[2] == PPC32II::Simm16 &&
|
||||
MI->getOperand(1).hasAllocatedReg() &&
|
||||
MI->getOperand(1).getReg() == PPC32::R0) {
|
||||
O << "0";
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user