#ifndef NDEBUG the "if (Stream) ..." stuff.
authorBill Wendling <isanbard@gmail.com>
Fri, 17 Nov 2006 01:43:48 +0000 (01:43 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 17 Nov 2006 01:43:48 +0000 (01:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31803 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Debug.h

index 27e4221c9e7f3583f1231f250c434aa9061d5a84..cedb50dcd29b5de8b0143e7fc66bdc789d5b00a5 100644 (file)
@@ -72,7 +72,9 @@ public:
 
   template <typename Ty>
   llvm_ostream& operator << (const Ty& Thing) {
+#ifndef NDEBUG
     if (Stream) *Stream << Thing;
+#endif
     return *this;
   }
 };