projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e1d8955
)
Fix some null checks to actually test the part that needs checking.
author
Owen Anderson
<resistor@mac.com>
Sat, 21 Apr 2007 07:04:45 +0000
(07:04 +0000)
committer
Owen Anderson
<resistor@mac.com>
Sat, 21 Apr 2007 07:04:45 +0000
(07:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36298
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 1d7e2f351c7bc4d9850a383eb95e563b10cf1bf2..45eed7fcdaf133ff9790ebb632496e84d21ec5dd 100644
(file)
--- a/
include/llvm/Analysis/Dominators.h
+++ b/
include/llvm/Analysis/Dominators.h
@@
-323,16
+323,15
@@
public:
/// Return the immediate dominator of A.
BasicBlock *getIDom(BasicBlock *A) const {
- if (!A) return 0;
-
ETNode *NodeA = getNode(A);
+ if (!NodeA) return 0;
const ETNode *idom = NodeA->getFather();
return idom ? idom->getData<BasicBlock>() : 0;
}
void getChildren(BasicBlock *A, std::vector<BasicBlock*>& children) const {
- if (!A) return;
ETNode *NodeA = getNode(A);
+ if (!NodeA) return;
const ETNode* son = NodeA->getSon();
if (!son) return;