mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
D'oh. Fix assert after a84922916e6eddf701b39fbd7fe0222cb0fee1d6.
(Which was attempting to fix unused variable warning in NDEBUG mode after 8ba56f322abf848cec78ff7f814f3ad84cd778be)
This commit is contained in:
parent
1fc283ee90
commit
abfa68cadb
@ -57,9 +57,10 @@ struct MakeGuardsExplicitLegacyPass : public FunctionPass {
|
||||
|
||||
static void turnToExplicitForm(CallInst *Guard, Function *DeoptIntrinsic) {
|
||||
// Replace the guard with an explicit branch (just like in GuardWidening).
|
||||
BasicBlock *OriginalBB = Guard->getParent();
|
||||
(void)OriginalBB;
|
||||
makeGuardControlFlowExplicit(DeoptIntrinsic, Guard, true);
|
||||
assert(isWidenableBranch(Guard->getParent()->getTerminator()) &&
|
||||
"should hold");
|
||||
assert(isWidenableBranch(OriginalBB->getTerminator()) && "should hold");
|
||||
|
||||
Guard->eraseFromParent();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user