[llvm] dc6c8b8 - [LTO] Fix a missing comment
Haojian Wu via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 30 23:35:20 PDT 2023
Author: Haojian Wu
Date: 2023-07-01T08:33:45+02:00
New Revision: dc6c8b8d1e357acf6440824afaf6b6547b34aeeb
URL: https://github.com/llvm/llvm-project/commit/dc6c8b8d1e357acf6440824afaf6b6547b34aeeb
DIFF: https://github.com/llvm/llvm-project/commit/dc6c8b8d1e357acf6440824afaf6b6547b34aeeb.diff
LOG: [LTO] Fix a missing comment
Address a missing code-review comment: https://reviews.llvm.org/D154191#inline-1490951
Added:
Modified:
llvm/lib/LTO/ThinLTOCodeGenerator.cpp
Removed:
################################################################################
diff --git a/llvm/lib/LTO/ThinLTOCodeGenerator.cpp b/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
index c20dfd0fd1d4a1..24cd6e1a0b415a 100644
--- a/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
+++ b/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
@@ -416,11 +416,11 @@ class ModuleCacheEntry {
if (EntryPath.empty())
return;
- if (auto Err = handleErrors(llvm::writeToOutput(
+ if (auto Err = llvm::writeToOutput(
EntryPath, [&OutputBuffer](llvm::raw_ostream &OS) -> llvm::Error {
OS << OutputBuffer.getBuffer();
return llvm::Error::success();
- })))
+ }))
report_fatal_error(llvm::formatv("ThinLTO: Can't write file {0}: {1}",
EntryPath,
toString(std::move(Err)).c_str()));
More information about the llvm-commits
mailing list