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:
Chris Lattner 2004-11-23 06:56:31 +00:00
parent c9a6b1f4f6
commit 7598bbac66

View File

@ -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?");