mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-10 22:46:25 +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.
|
// Delete the dead blocks and any of their dead successors.
|
||||||
|
MadeChange |= !WorkList.empty();
|
||||||
while (!WorkList.empty()) {
|
while (!WorkList.empty()) {
|
||||||
BasicBlock *BB = *WorkList.begin();
|
BasicBlock *BB = *WorkList.begin();
|
||||||
WorkList.erase(BB);
|
WorkList.erase(BB);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user