mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-04 18:38:37 +00:00
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
80831ad19a
commit
5ba315dbbe
@ -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…
x
Reference in New Issue
Block a user