mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Fix
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070416/047971.html git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36236 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7d87c1476a
commit
7cc6dcf6e0
@ -284,7 +284,7 @@ PostDominanceFrontier::calculate(const PostDominatorTree &DT,
|
||||
for (pred_iterator SI = pred_begin(BB), SE = pred_end(BB);
|
||||
SI != SE; ++SI)
|
||||
// Does Node immediately dominate this predecessor?
|
||||
if (DT[*SI]->getIDom() != Node)
|
||||
if (DT[*SI] && DT[*SI]->getIDom() != Node)
|
||||
S.insert(*SI);
|
||||
|
||||
// At this point, S is DFlocal. Now we union in DFup's of our children...
|
||||
|
Loading…
Reference in New Issue
Block a user