diff options
Diffstat (limited to 'include/llvm/Value.h')
-rw-r--r-- | include/llvm/Value.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h index e8df7cd..262880a 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -75,10 +75,8 @@ public: /// print - Implement operator<< on Value... /// - void print(OStream &O) const { - if (O.stream()) print(*O.stream()); - } virtual void print(std::ostream &O) const = 0; + void print(std::ostream *O) const { if (O) print(*O); } /// All values are typed, get the type of this value. /// |