mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 03:32:21 +00:00
Don't crash when encountering a BasicBlock that hasn't been registered yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35756 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0cd3a23d2a
commit
51bc779096
@ -935,8 +935,9 @@ void ETForestBase::updateDFSNumbers()
|
||||
for (df_iterator<BasicBlock*> I = df_begin(Roots[i]),
|
||||
E = df_end(Roots[i]); I != E; ++I) {
|
||||
BasicBlock *BB = *I;
|
||||
if (!getNode(BB)->hasFather())
|
||||
getNode(BB)->assignDFSNumber(dfsnum);
|
||||
ETNode *ETN = getNode(BB);
|
||||
if (ETN && !ETN->hasFather())
|
||||
ETN->assignDFSNumber(dfsnum);
|
||||
}
|
||||
SlowQueries = 0;
|
||||
DFSInfoValid = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user