mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Rename DeleteBlockIfDead to DeleteDeadBlock and make it
unconditionally delete the block. All likely clients will do the checking anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60464 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1681,7 +1681,7 @@ bool llvm::SimplifyCFG(BasicBlock *BB) {
|
||||
// as a predecessor. These are unreachable.
|
||||
if (pred_begin(BB) == pred_end(BB) || BB->getSinglePredecessor() == BB) {
|
||||
DOUT << "Removing BB: \n" << *BB;
|
||||
DeleteBlockIfDead(BB);
|
||||
DeleteDeadBlock(BB);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user