From 9e21c4d19364b6642cb164d5f1e5f9e893c84204 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Fri, 7 Mar 2025 11:45:39 -0800 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?= =?UTF-8?q?l=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Created using spr 1.3.4 --- llvm/tools/gold/gold-plugin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index b42bfbed3b873..256933d3f53f9 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -1117,10 +1117,10 @@ static std::vector, bool>> runLTO() { std::make_unique(FD, true)); }; - auto AddBuffer = [&](size_t Task, const Twine &moduleName, + auto AddBuffer = [&](size_t Task, const Twine &ModuleName, std::unique_ptr MB) { - auto Stream = *AddStream(Task, ModuleName); - Stream->OS << MB->getBuffer(); + auto Stream = AddStream(Task, ModuleName); + *Stream->OS << MB->getBuffer(); check(Stream->commit(), "Failed to commit cache"); };