#ifndef NDEBUG the "if (Stream) ..." stuff.

llvm-svn: 31803
This commit is contained in:
Bill Wendling 2006-11-17 01:43:48 +00:00
parent 84dd67e08a
commit ca6f6a43e0
1 changed files with 2 additions and 0 deletions

View File

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