Fix some null checks to actually test the part that needs checking.
[oota-llvm.git] / include / llvm / Analysis / ET-Forest.h
index f41e1f59c9bb30eeef7572dba8a5cacb93a9c41e..8bd5e447bca6db63e5c5712e377776a6a667cbff 100644 (file)
@@ -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;