Skip to content

Commit e98c4c8

Browse files
committed
Merging r355154:
------------------------------------------------------------------------ r355154 | joerg | 2019-02-28 15:33:09 -0800 (Thu, 28 Feb 2019) | 2 lines [PPC] Secure PLT only has meaning for PIC ------------------------------------------------------------------------ llvm-svn: 362729
1 parent 897fd6e commit e98c4c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4359,8 +4359,8 @@ void PPCDAGToDAGISel::Select(SDNode *N) {
43594359
const Module *M = MF->getFunction().getParent();
43604360

43614361
if (PPCLowering->getPointerTy(CurDAG->getDataLayout()) != MVT::i32 ||
4362-
!PPCSubTarget->isSecurePlt() || !PPCSubTarget->isTargetELF() ||
4363-
M->getPICLevel() == PICLevel::SmallPIC)
4362+
(!TM.isPositionIndependent() || !PPCSubTarget->isSecurePlt()) ||
4363+
!PPCSubTarget->isTargetELF() || M->getPICLevel() == PICLevel::SmallPIC)
43644364
break;
43654365

43664366
SDValue Op = N->getOperand(1);

0 commit comments

Comments
 (0)