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:
parent
365f9e08a5
commit
9863c4062d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user