Fix some null checks to actually test the part that needs checking.
[oota-llvm.git] / include / llvm / Analysis / Interval.h
index b9e1d31e3a36b4bad7e02b5308d7587945757ddf..bed815a66525e0962625ab5829975075da2e29d4 100644 (file)
@@ -99,6 +99,7 @@ public:
 
   /// print - Show contents in human readable format...
   void print(std::ostream &O) const;
+  void print(std::ostream *O) const { if (O) print(*O); }
 };
 
 /// succ_begin/succ_end - define methods so that Intervals may be used