mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Check in the file I forgot last night, to solve all of the crashes in every
test in the suite. :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18804 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b3a86a6d49
commit
f23586c7ef
@ -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
Block a user