[llvm] [gold] Fix compilation (PR #130334)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 7 11:57:02 PST 2025
================
@@ -1117,10 +1117,10 @@ static std::vector<std::pair<SmallString<128>, bool>> runLTO() {
std::make_unique<llvm::raw_fd_ostream>(FD, true));
};
- auto AddBuffer = [&](size_t Task, const Twine &moduleName,
+ auto AddBuffer = [&](size_t Task, const Twine &ModuleName,
std::unique_ptr<MemoryBuffer> MB) {
- auto Stream = *AddStream(Task, ModuleName);
- Stream->OS << MB->getBuffer();
+ auto Stream = AddStream(Task, ModuleName);
+ *Stream->OS << MB->getBuffer();
----------------
vitalybuka wrote:
because it AddStream -> std::make_unique
https://github.com/llvm/llvm-project/pull/130334
More information about the llvm-commits
mailing list