Devang Patel 2007-04-18 00:53:01 +00:00
parent 7d87c1476a
commit 7cc6dcf6e0

View File

@ -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...