1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

[PPC] Secure PLT only has meaning for PIC

llvm-svn: 355154
This commit is contained in:
Joerg Sonnenberger 2019-02-28 23:33:09 +00:00
parent 3d80173d14
commit c4ae03f055

View File

@ -4358,8 +4358,8 @@ void PPCDAGToDAGISel::Select(SDNode *N) {
const Module *M = MF->getFunction().getParent();
if (PPCLowering->getPointerTy(CurDAG->getDataLayout()) != MVT::i32 ||
!PPCSubTarget->isSecurePlt() || !PPCSubTarget->isTargetELF() ||
M->getPICLevel() == PICLevel::SmallPIC)
(!TM.isPositionIndependent() || !PPCSubTarget->isSecurePlt()) ||
!PPCSubTarget->isTargetELF() || M->getPICLevel() == PICLevel::SmallPIC)
break;
SDValue Op = N->getOperand(1);