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 72daaa46eb
commit 8d0b1b2a82
1 changed files with 1 additions and 0 deletions

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.