Skip to content

Commit

Permalink
Fix lto AddStreamFn in gold plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZequanWu committed Nov 22, 2022
1 parent 4fd3a12 commit 5d140dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion llvm/tools/gold/gold-plugin.cpp
Expand Up @@ -1091,7 +1091,9 @@ static std::vector<std::pair<SmallString<128>, bool>> runLTO() {
size_t MaxTasks = Lto->getMaxTasks();
std::vector<std::pair<SmallString<128>, bool>> Files(MaxTasks);

auto AddStream = [&](size_t Task) -> std::unique_ptr<CachedFileStream> {
auto AddStream =
[&](size_t Task,
const Twine &ModuleName) -> std::unique_ptr<CachedFileStream> {
Files[Task].second = !SaveTemps;
int FD = getOutputFileName(Filename, /* TempOutFile */ !SaveTemps,
Files[Task].first, Task);
Expand Down

0 comments on commit 5d140dc

Please sign in to comment.