Use the isPositionIndependent predicate. NFC.

llvm-svn: 273875
This commit is contained in:
Rafael Espindola 2016-06-27 14:05:43 +00:00
parent 9c2f378587
commit 21d22a01ea
1 changed files with 2 additions and 4 deletions

View File

@ -8695,10 +8695,8 @@ PPCTargetLowering::emitEHSjLjLongJmp(MachineInstr *MI,
unsigned BP =
(PVT == MVT::i64)
? PPC::X30
: (Subtarget.isSVR4ABI() &&
MF->getTarget().getRelocationModel() == Reloc::PIC_
? PPC::R29
: PPC::R30);
: (Subtarget.isSVR4ABI() && isPositionIndependent() ? PPC::R29
: PPC::R30);
MachineInstrBuilder MIB;