diff options
author | Brian Cain <bcain@quicinc.com> | 2020-02-24 11:58:50 -0600 |
---|---|---|
committer | Brian Cain <bcain@quicinc.com> | 2020-03-02 11:55:53 -0600 |
commit | e691b3015c64648cc8d8255284e1c63ad1038f77 (patch) | |
tree | c43184b63c45f754d0b1513a01c9ea641a09ed91 /llvm/lib/Support/FileUtilities.cpp | |
parent | e7de00cf974a4e30d4900518ae8473a117efbd6c (diff) | |
download | llvm-e691b3015c64648cc8d8255284e1c63ad1038f77.zip llvm-e691b3015c64648cc8d8255284e1c63ad1038f77.tar.gz llvm-e691b3015c64648cc8d8255284e1c63ad1038f77.tar.bz2 |
Fix unused-variable warning
Diffstat (limited to 'llvm/lib/Support/FileUtilities.cpp')
-rw-r--r-- | llvm/lib/Support/FileUtilities.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Support/FileUtilities.cpp b/llvm/lib/Support/FileUtilities.cpp index d11fbb5..b95f92c 100644 --- a/llvm/lib/Support/FileUtilities.cpp +++ b/llvm/lib/Support/FileUtilities.cpp @@ -318,9 +318,8 @@ llvm::Error llvm::writeFileAtomically( atomic_write_error::output_stream_error); } - if (const std::error_code Error = - sys::fs::rename(/*from=*/GeneratedUniqPath.c_str(), - /*to=*/FinalPath.str().c_str())) { + if (sys::fs::rename(/*from=*/GeneratedUniqPath.c_str(), + /*to=*/FinalPath.str().c_str())) { return llvm::make_error<AtomicFileWriteError>( atomic_write_error::failed_to_rename_temp_file); } |