[llvm] r318104 - Simplify. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 13 15:06:54 PST 2017
Author: rafael
Date: Mon Nov 13 15:06:54 2017
New Revision: 318104
URL: http://llvm.org/viewvc/llvm-project?rev=318104&view=rev
Log:
Simplify. NFC.
Modified:
llvm/trunk/lib/Support/LockFileManager.cpp
Modified: llvm/trunk/lib/Support/LockFileManager.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/LockFileManager.cpp?rev=318104&r1=318103&r2=318104&view=diff
==============================================================================
--- llvm/trunk/lib/Support/LockFileManager.cpp (original)
+++ llvm/trunk/lib/Support/LockFileManager.cpp Mon Nov 13 15:06:54 2017
@@ -273,9 +273,8 @@ std::string LockFileManager::getErrorMes
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 "";
}
More information about the llvm-commits
mailing list