projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cae3491
)
Fix PR670 and test/Regression/Transforms/Mem2Reg/2005-11-28-Crash.ll
author
Chris Lattner
<sabre@nondot.org>
Tue, 29 Nov 2005 01:07:12 +0000
(
01:07
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 29 Nov 2005 01:07:12 +0000
(
01:07
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24508
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Analysis/Dominators.h
patch
|
blob
|
history
diff --git
a/include/llvm/Analysis/Dominators.h
b/include/llvm/Analysis/Dominators.h
index 9db52f608e59824dd1832c9a4ef1930c0ab0cbbb..f0d9a8e133cb05ff36c05500ae799b4d683146d3 100644
(file)
--- a/
include/llvm/Analysis/Dominators.h
+++ b/
include/llvm/Analysis/Dominators.h
@@
-311,6
+311,7
@@
public:
///
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;