forked from OSchip/llvm-project
ErrorInfoBase::message(): Don't use raw_string_ostream's buffer, Msg, before closing. Use raw_string_ostream::str() to flush the buffer.
llvm-svn: 268856
This commit is contained in:
parent
1022ca5646
commit
3bf8061f1a
|
@ -41,7 +41,7 @@ public:
|
|||
std::string Msg;
|
||||
raw_string_ostream OS(Msg);
|
||||
log(OS);
|
||||
return Msg;
|
||||
return OS.str();
|
||||
}
|
||||
|
||||
/// Convert this error to a std::error_code.
|
||||
|
|
Loading…
Reference in New Issue