diff options
Diffstat (limited to 'include/llvm/Support/Debug.h')
-rw-r--r-- | include/llvm/Support/Debug.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Support/Debug.h b/include/llvm/Support/Debug.h index 52d0d3fb40..0ebed202e4 100644 --- a/include/llvm/Support/Debug.h +++ b/include/llvm/Support/Debug.h @@ -68,7 +68,8 @@ bool isCurrentDebugType(const char *Type); OStream &getErrorOutputStream(const char *DebugType); #ifdef NDEBUG -#define DOUT llvm::OStream(0) +static llvm::OStream NullStream(0); +#define DOUT llvm::NullStream #else #define DOUT llvm::getErrorOutputStream(DEBUG_TYPE) #endif |