mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
Fix a minor bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18153 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c9a6b1f4f6
commit
7598bbac66
@ -220,7 +220,8 @@ int PPC32CodeEmitter::getMachineOpValue(MachineInstr &MI, MachineOperand &MO) {
|
||||
}
|
||||
|
||||
// Special treatment for global symbols: constants and vars
|
||||
if (MO.isConstantPoolIndex() || MO.isGlobalAddress()) {
|
||||
if ((MO.isConstantPoolIndex() || MO.isGlobalAddress()) &&
|
||||
MI.getOpcode() != PPC::CALLpcrel) {
|
||||
unsigned Opcode = MI.getOpcode();
|
||||
assert(MovePCtoLROffset && "MovePCtoLR not seen yet?");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user