mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-11 05:35:11 +00:00
Cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9133 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
14d9ce7892
commit
fb42dd83f8
@ -122,11 +122,8 @@ static void AddLoadsAndStores(AllocaInst* XSlot, Instruction& X,
|
||||
}
|
||||
|
||||
static void DeletePhis(PhiSet& phisToGo) {
|
||||
for (PhiSetIterator PI=phisToGo.begin(), PE=phisToGo.end(); PI != PE; ++PI) {
|
||||
assert((*PI)->use_size() == 0 && "This PHI should be DEAD!");
|
||||
(*PI)->getParent()->getInstList().remove(*PI);
|
||||
delete *PI;
|
||||
}
|
||||
for (PhiSetIterator PI = phisToGo.begin(), PE =phisToGo.end(); PI != PE; ++PI)
|
||||
(*PI)->getParent()->getInstList().erase(*PI);
|
||||
phisToGo.clear();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user