projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix some null checks to actually test the part that needs checking.
[oota-llvm.git]
/
include
/
llvm
/
Analysis
/
ET-Forest.h
diff --git
a/include/llvm/Analysis/ET-Forest.h
b/include/llvm/Analysis/ET-Forest.h
index f41e1f59c9bb30eeef7572dba8a5cacb93a9c41e..8bd5e447bca6db63e5c5712e377776a6a667cbff 100644
(file)
--- a/
include/llvm/Analysis/ET-Forest.h
+++ b/
include/llvm/Analysis/ET-Forest.h
@@
-275,6
+275,14
@@
public:
return DFSNumOut;
}
+ const ETNode *getSon() const {
+ return Son;
+ }
+
+ const ETNode *getBrother() const {
+ return Left;
+ }
+
private:
// Data represented by the node
void *data;