We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 897fd6e commit e98c4c8Copy full SHA for e98c4c8
llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
@@ -4359,8 +4359,8 @@ void PPCDAGToDAGISel::Select(SDNode *N) {
4359
const Module *M = MF->getFunction().getParent();
4360
4361
if (PPCLowering->getPointerTy(CurDAG->getDataLayout()) != MVT::i32 ||
4362
- !PPCSubTarget->isSecurePlt() || !PPCSubTarget->isTargetELF() ||
4363
- M->getPICLevel() == PICLevel::SmallPIC)
+ (!TM.isPositionIndependent() || !PPCSubTarget->isSecurePlt()) ||
+ !PPCSubTarget->isTargetELF() || M->getPICLevel() == PICLevel::SmallPIC)
4364
break;
4365
4366
SDValue Op = N->getOperand(1);
0 commit comments