mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-25 21:16:19 +00:00
Fix unused variable warnings.
llvm-svn: 59778
This commit is contained in:
parent
fe33ecd2d3
commit
b6d277da6c
@ -1788,6 +1788,7 @@ bool IPSCCP::runOnModule(Module &M) {
|
||||
// The constant folder may not have been able to fold the terminator
|
||||
// if this is a branch or switch on undef. Fold it manually as a
|
||||
// branch to the first successor.
|
||||
#ifndef NDEBUG
|
||||
if (BranchInst *BI = dyn_cast<BranchInst>(I)) {
|
||||
assert(BI->isConditional() && isa<UndefValue>(BI->getCondition()) &&
|
||||
"Branch should be foldable!");
|
||||
@ -1796,6 +1797,7 @@ bool IPSCCP::runOnModule(Module &M) {
|
||||
} else {
|
||||
assert(0 && "Didn't fold away reference to block!");
|
||||
}
|
||||
#endif
|
||||
|
||||
// Make this an uncond branch to the first successor.
|
||||
TerminatorInst *TI = I->getParent()->getTerminator();
|
||||
|
Loading…
Reference in New Issue
Block a user