mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-01 02:29:19 +00:00
Fix unused variable warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58651 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b593117b44
commit
8a88a14462
@ -205,7 +205,10 @@ void llvm::RemoveSuccessor(TerminatorInst *TI, unsigned SuccNum) {
|
|||||||
BasicBlock *llvm::SplitEdge(BasicBlock *BB, BasicBlock *Succ, Pass *P) {
|
BasicBlock *llvm::SplitEdge(BasicBlock *BB, BasicBlock *Succ, Pass *P) {
|
||||||
TerminatorInst *LatchTerm = BB->getTerminator();
|
TerminatorInst *LatchTerm = BB->getTerminator();
|
||||||
unsigned SuccNum = 0;
|
unsigned SuccNum = 0;
|
||||||
for (unsigned i = 0, e = LatchTerm->getNumSuccessors(); ; ++i) {
|
#ifndef NDEBUG
|
||||||
|
unsigned e = LatchTerm->getNumSuccessors();
|
||||||
|
#endif
|
||||||
|
for (unsigned i = 0; ; ++i) {
|
||||||
assert(i != e && "Didn't find edge?");
|
assert(i != e && "Didn't find edge?");
|
||||||
if (LatchTerm->getSuccessor(i) == Succ) {
|
if (LatchTerm->getSuccessor(i) == Succ) {
|
||||||
SuccNum = i;
|
SuccNum = i;
|
||||||
@ -224,6 +227,7 @@ BasicBlock *llvm::SplitEdge(BasicBlock *BB, BasicBlock *Succ, Pass *P) {
|
|||||||
// If the successor only has a single pred, split the top of the successor
|
// If the successor only has a single pred, split the top of the successor
|
||||||
// block.
|
// block.
|
||||||
assert(SP == BB && "CFG broken");
|
assert(SP == BB && "CFG broken");
|
||||||
|
SP = NULL;
|
||||||
return SplitBlock(Succ, Succ->begin(), P);
|
return SplitBlock(Succ, Succ->begin(), P);
|
||||||
} else {
|
} else {
|
||||||
// Otherwise, if BB has a single successor, split it at the bottom of the
|
// Otherwise, if BB has a single successor, split it at the bottom of the
|
||||||
|
Loading…
Reference in New Issue
Block a user