mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-06 19:31:13 +00: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; }
|
std::ostream* stream() const { return Stream; }
|
||||||
|
|
||||||
inline llvm_ostream &operator << (std::ostream& (*Func)(std::ostream&)) {
|
inline llvm_ostream &operator << (std::ostream& (*Func)(std::ostream&)) {
|
||||||
*Stream << Func;
|
if (Stream) *Stream << Func;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user