1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

Fix unused-variable warning

This commit is contained in:
Brian Cain 2020-02-24 11:58:50 -06:00
parent 365f9e08a5
commit 9863c4062d

View File

@ -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);
}