Skip to content

Commit

Permalink
[LTO] Fix a missing comment
Browse files Browse the repository at this point in the history
Address a missing code-review comment: https://reviews.llvm.org/D154191#inline-1490951
  • Loading branch information
hokein committed Jul 1, 2023
1 parent b28296c commit dc6c8b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/LTO/ThinLTOCodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down

0 comments on commit dc6c8b8

Please sign in to comment.