Fix warning: lambda capture 'temp_file_path' is not used

llvm-svn: 372044
This commit is contained in:
Jonas Devlieghere 2019-09-16 22:55:49 +00:00
parent e63c676825
commit 3cabfb344b
1 changed files with 1 additions and 2 deletions

View File

@ -109,8 +109,7 @@ static Status save_socket_id_to_file(const std::string &socket_id,
if (auto Err =
handleErrors(llvm::writeFileAtomically(
temp_file_path, temp_file_spec.GetPath(), socket_id),
[&status, &temp_file_path,
&file_spec](const AtomicFileWriteError &E) {
[&status, &file_spec](const AtomicFileWriteError &E) {
std::string ErrorMsgBuffer;
llvm::raw_string_ostream S(ErrorMsgBuffer);
E.log(S);