mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-05 10:08:03 +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…
x
Reference in New Issue
Block a user