diff --git a/contrib/llvm/lib/Target/PowerPC/PPCFastISel.cpp b/contrib/llvm/lib/Target/PowerPC/PPCFastISel.cpp index 47ec109a543a..970c804e71ee 100644 --- a/contrib/llvm/lib/Target/PowerPC/PPCFastISel.cpp +++ b/contrib/llvm/lib/Target/PowerPC/PPCFastISel.cpp @@ -1027,7 +1027,7 @@ bool PPCFastISel::SelectFPToI(const Instruction *I, bool IsSigned) { return false; // If we don't have FCTIDUZ and we need it, punt to SelectionDAG. - if (DstVT == MVT::i64 && !IsSigned && !PPCSubTarget->hasFPCVT()) + if (DstVT == MVT::i64 && !IsSigned && !PPCSubTarget.hasFPCVT()) return false; Value *Src = I->getOperand(0); diff --git a/contrib/llvm/patches/patch-r267981-llvm-r211435-fix-ppc-fctiduz.diff b/contrib/llvm/patches/patch-r267981-llvm-r211435-fix-ppc-fctiduz.diff index e64f8d33f56f..2cfb93ea36c4 100644 --- a/contrib/llvm/patches/patch-r267981-llvm-r211435-fix-ppc-fctiduz.diff +++ b/contrib/llvm/patches/patch-r267981-llvm-r211435-fix-ppc-fctiduz.diff @@ -32,7 +32,7 @@ Index: lib/Target/PowerPC/PPCFastISel.cpp return false; + // If we don't have FCTIDUZ and we need it, punt to SelectionDAG. -+ if (DstVT == MVT::i64 && !IsSigned && !PPCSubTarget->hasFPCVT()) ++ if (DstVT == MVT::i64 && !IsSigned && !PPCSubTarget.hasFPCVT()) + return false; + Value *Src = I->getOperand(0);