From 5d140dc2c0f3068fae7127b85df861c420848078 Mon Sep 17 00:00:00 2001 From: Zequan Wu Date: Tue, 22 Nov 2022 14:59:43 -0800 Subject: Fix lto AddStreamFn in gold plugin. --- llvm/tools/gold/gold-plugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'llvm/tools/gold') diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index 59cff41..f7eb7fa 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -1091,7 +1091,9 @@ static std::vector, bool>> runLTO() { size_t MaxTasks = Lto->getMaxTasks(); std::vector, bool>> Files(MaxTasks); - auto AddStream = [&](size_t Task) -> std::unique_ptr { + auto AddStream = + [&](size_t Task, + const Twine &ModuleName) -> std::unique_ptr { Files[Task].second = !SaveTemps; int FD = getOutputFileName(Filename, /* TempOutFile */ !SaveTemps, Files[Task].first, Task); -- cgit v1.1