summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/SCCP.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SCCP.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/SCCP.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp
index 11cd7cc8200..2f6ed05c023 100644
--- a/llvm/lib/Transforms/Scalar/SCCP.cpp
+++ b/llvm/lib/Transforms/Scalar/SCCP.cpp
@@ -1172,7 +1172,7 @@ void SCCPSolver::visitCallSite(CallSite CS) {
return;
Value *CopyOf = I->getOperand(0);
- auto *PBranch = dyn_cast<PredicateBranch>(getPredicateInfoFor(I));
+ auto *PBranch = dyn_cast<PredicateBranch>(PI);
if (!PBranch) {
mergeInValue(ValueState[I], I, getValueState(CopyOf));
return;
OpenPOWER on IntegriCloud