diff options
| author | James Y Knight <jyknight@google.com> | 2019-11-20 22:04:54 -0500 |
|---|---|---|
| committer | James Y Knight <jyknight@google.com> | 2019-11-20 22:05:05 -0500 |
| commit | a84922916e6eddf701b39fbd7fe0222cb0fee1d6 (patch) | |
| tree | e2ced5171172ac781b1f4fbb039b9166f4a06f44 /llvm/lib/Transforms | |
| parent | ee9b49eef04518123ec04372b7b4bfc337c39dc9 (diff) | |
| download | bcm5719-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.cpp | 4 |
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(); } |

