summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorJames Y Knight <jyknight@google.com>2019-11-20 22:04:54 -0500
committerJames Y Knight <jyknight@google.com>2019-11-20 22:05:05 -0500
commita84922916e6eddf701b39fbd7fe0222cb0fee1d6 (patch)
treee2ced5171172ac781b1f4fbb039b9166f4a06f44 /llvm/lib/Transforms
parentee9b49eef04518123ec04372b7b4bfc337c39dc9 (diff)
downloadbcm5719-llvm-a84922916e6eddf701b39fbd7fe0222cb0fee1d6.tar.gz
bcm5719-llvm-a84922916e6eddf701b39fbd7fe0222cb0fee1d6.zip
Fix unused variable warning in NDEBUG mode after 8ba56f322abf848cec78ff7f814f3ad84cd778be
Diffstat (limited to 'llvm/lib/Transforms')
-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