summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Transforms/Scalar/MakeGuardsExplicit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/MakeGuardsExplicit.cpp b/llvm/lib/Transforms/Scalar/MakeGuardsExplicit.cpp
index 0e3fcf0eb77..0643480a709 100644
--- a/llvm/lib/Transforms/Scalar/MakeGuardsExplicit.cpp
+++ b/llvm/lib/Transforms/Scalar/MakeGuardsExplicit.cpp
@@ -57,9 +57,9 @@ struct MakeGuardsExplicitLegacyPass : public FunctionPass {
static void turnToExplicitForm(CallInst *Guard, Function *DeoptIntrinsic) {
// Replace the guard with an explicit branch (just like in GuardWidening).
- BasicBlock *BB = Guard->getParent();
makeGuardControlFlowExplicit(DeoptIntrinsic, Guard, true);
- assert(isWidenableBranch(BB->getTerminator()) && "should hold");
+ assert(isWidenableBranch(Guard->getParent()->getTerminator()) &&
+ "should hold");
Guard->eraseFromParent();
}
OpenPOWER on IntegriCloud