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:
NAKAMURA Takumi 2016-05-07 08:43:11 +00:00
parent 1022ca5646
commit 3bf8061f1a
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ public:
std::string Msg; std::string Msg;
raw_string_ostream OS(Msg); raw_string_ostream OS(Msg);
log(OS); log(OS);
return Msg; return OS.str();
} }
/// Convert this error to a std::error_code. /// Convert this error to a std::error_code.