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:
parent
a18a61a56a
commit
250560d106
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user