forked from OSchip/llvm-project
[NFC] SimplifyCFGOpt::simplifyUnreachable(): pacify unused variable warning
Thanks to Luke Benes for pointing it out.
This commit is contained in:
parent
e457896a6e
commit
ff3749fc79
|
@ -4632,6 +4632,7 @@ bool SimplifyCFGOpt::simplifyUnreachable(UnreachableInst *UI) {
|
|||
Changed = true;
|
||||
}
|
||||
} else if (auto *CRI = dyn_cast<CleanupReturnInst>(TI)) {
|
||||
(void)CRI;
|
||||
assert(CRI->hasUnwindDest() && CRI->getUnwindDest() == BB &&
|
||||
"Expected to always have an unwind to BB.");
|
||||
Updates.push_back({DominatorTree::Delete, Predecessor, BB});
|
||||
|
|
Loading…
Reference in New Issue