mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-23 12:40:17 +00:00
Set the 'MadeChange' variable if we are deleting blocks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169455 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
85893f48a6
commit
1c211640e5
@ -195,6 +195,7 @@ bool CodeGenPrepare::runOnFunction(Function &F) {
|
||||
}
|
||||
|
||||
// Delete the dead blocks and any of their dead successors.
|
||||
MadeChange |= !WorkList.empty();
|
||||
while (!WorkList.empty()) {
|
||||
BasicBlock *BB = *WorkList.begin();
|
||||
WorkList.erase(BB);
|
||||
|
Loading…
Reference in New Issue
Block a user