llvm-svn: 9133
This commit is contained in:
Chris Lattner 2003-10-15 16:42:21 +00:00
parent f92877f304
commit f77a856f3b
1 changed files with 2 additions and 5 deletions

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