1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Protect against null streams.

llvm-svn: 31937
This commit is contained in:
Bill Wendling 2006-11-27 10:45:49 +00:00
parent a18a61a56a
commit 250560d106

View File

@ -32,7 +32,7 @@ namespace llvm {
std::ostream* stream() const { return Stream; }
inline llvm_ostream &operator << (std::ostream& (*Func)(std::ostream&)) {
*Stream << Func;
if (Stream) *Stream << Func;
return *this;
}