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.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp
index b1c923c2bdc..6493f0e4080 100644
--- a/llvm/lib/Transforms/Scalar/SCCP.cpp
+++ b/llvm/lib/Transforms/Scalar/SCCP.cpp
@@ -1082,6 +1082,10 @@ void SCCPSolver::visitCallSite(CallSite CS) {
}
}
Instruction *I = CS.getInstruction();
+
+ if (!CS.doesNotThrow() && I->getParent()->getUnwindDest())
+ markEdgeExecutable(I->getParent(), I->getParent()->getUnwindDest());
+
if (I->getType() == Type::VoidTy) return;
LatticeVal &IV = ValueState[I];
OpenPOWER on IntegriCloud