From a72ac422a22683b9ab872838be1a19445e3c1141 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 17 Nov 2006 01:43:48 +0000 Subject: [PATCH] #ifndef NDEBUG the "if (Stream) ..." stuff. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31803 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/Debug.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/llvm/Support/Debug.h b/include/llvm/Support/Debug.h index 27e4221c9e7..cedb50dcd29 100644 --- a/include/llvm/Support/Debug.h +++ b/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; } }; -- 2.34.1