diff options
Diffstat (limited to 'include/llvm/Support')
-rw-r--r-- | include/llvm/Support/Debug.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Support/Debug.h b/include/llvm/Support/Debug.h index 27e4221..cedb50d 100644 --- a/include/llvm/Support/Debug.h +++ b/include/llvm/Support/Debug.h @@ -72,7 +72,9 @@ public: template <typename Ty> llvm_ostream& operator << (const Ty& Thing) { +#ifndef NDEBUG if (Stream) *Stream << Thing; +#endif return *this; } }; |