aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/LockFileManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/LockFileManager.cpp')
-rw-r--r--llvm/lib/Support/LockFileManager.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Support/LockFileManager.cpp b/llvm/lib/Support/LockFileManager.cpp
index 81f3fd0..ad749e0 100644
--- a/llvm/lib/Support/LockFileManager.cpp
+++ b/llvm/lib/Support/LockFileManager.cpp
@@ -273,9 +273,8 @@ std::string LockFileManager::getErrorMessage() const {
std::string ErrCodeMsg = Error->message();
raw_string_ostream OSS(Str);
if (!ErrCodeMsg.empty())
- OSS << ": " << Error->message();
- OSS.flush();
- return Str;
+ OSS << ": " << ErrCodeMsg;
+ return OSS.str();
}
return "";
}