[llvm-commits] CVS: llvm/include/llvm/Analysis/Dominators.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Nov 28 17:07:24 PST 2005
Changes in directory llvm/include/llvm/Analysis:
Dominators.h updated: 1.50 -> 1.51
---
Log message:
Fix PR670: http://llvm.cs.uiuc.edu/PR670 and test/Regression/Transforms/Mem2Reg/2005-11-28-Crash.ll
---
Diffs of the changes: (+1 -0)
Dominators.h | 1 +
1 files changed, 1 insertion(+)
Index: llvm/include/llvm/Analysis/Dominators.h
diff -u llvm/include/llvm/Analysis/Dominators.h:1.50 llvm/include/llvm/Analysis/Dominators.h:1.51
--- llvm/include/llvm/Analysis/Dominators.h:1.50 Fri Nov 18 01:27:33 2005
+++ llvm/include/llvm/Analysis/Dominators.h Mon Nov 28 19:07:12 2005
@@ -311,6 +311,7 @@
///
bool properlyDominates(const Node *N) const {
const Node *IDom;
+ if (this == 0 || N == 0) return false;
while ((IDom = N->getIDom()) != 0 && IDom != this)
N = IDom; // Walk up the tree
return IDom != 0;
More information about the llvm-commits
mailing list