[llvm-commits] CVS: llvm/lib/Analysis/PostDominators.cpp
Devang Patel
dpatel at apple.com
Tue Apr 17 17:53:18 PDT 2007
Changes in directory llvm/lib/Analysis:
PostDominators.cpp updated: 1.65 -> 1.66
---
Log message:
Fix
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070416/047971.html
---
Diffs of the changes: (+1 -1)
PostDominators.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Analysis/PostDominators.cpp
diff -u llvm/lib/Analysis/PostDominators.cpp:1.65 llvm/lib/Analysis/PostDominators.cpp:1.66
--- llvm/lib/Analysis/PostDominators.cpp:1.65 Sun Apr 15 18:14:18 2007
+++ llvm/lib/Analysis/PostDominators.cpp Tue Apr 17 19:53:01 2007
@@ -284,7 +284,7 @@
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...
More information about the llvm-commits
mailing list