diff --git a/llvm/include/llvm/Support/Debug.h b/llvm/include/llvm/Support/Debug.h index 27e4221c9e7f..cedb50dcd29b 100644 --- a/llvm/include/llvm/Support/Debug.h +++ b/llvm/include/llvm/Support/Debug.h @@ -72,7 +72,9 @@ public: template llvm_ostream& operator << (const Ty& Thing) { +#ifndef NDEBUG if (Stream) *Stream << Thing; +#endif return *this; } };