git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9133 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-10-15 16:42:21 +00:00
parent 14d9ce7892
commit fb42dd83f8

View File

@ -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();
}