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:
parent
72daaa46eb
commit
8d0b1b2a82
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue