Check in the file I forgot last night, to solve all of the crashes in every

test in the suite.  :(

llvm-svn: 18804
This commit is contained in:
Chris Lattner 2004-12-11 22:10:29 +00:00
parent 80831ad19a
commit 5ba315dbbe

View File

@ -138,6 +138,7 @@ void BasicBlock::dropAllReferences() {
void BasicBlock::removePredecessor(BasicBlock *Pred) {
assert(find(pred_begin(this), pred_end(this), Pred) != pred_end(this) &&
"removePredecessor: BB is not a predecessor!");
if (InstList.empty()) return;
PHINode *APN = dyn_cast<PHINode>(&front());
if (!APN) return; // Quick exit.