Skip to content

Conversation

@NuriAmari
Copy link
Contributor

#109847 inadvertently introduced compile errors to the gold plugin. This PR fixes the issue.

@NuriAmari
Copy link
Contributor Author

@NuriAmari NuriAmari force-pushed the users/NuriAmari/fix-gold-plugin-build branch 2 times, most recently from ddddecf to 0267379 Compare October 7, 2024 17:33
llvm#109847 inadvertently
introduced compile errors to the gold plugin. This PR fixes the issue.
@NuriAmari NuriAmari force-pushed the users/NuriAmari/fix-gold-plugin-build branch from 0267379 to 71cfa84 Compare October 7, 2024 17:34
@NuriAmari NuriAmari marked this pull request as ready for review October 7, 2024 17:38
@llvmbot llvmbot added the LTO Link time optimization (regular/full LTO or ThinLTO) label Oct 7, 2024
@llvmbot
Copy link
Member

llvmbot commented Oct 7, 2024

@llvm/pr-subscribers-lto

Author: Nuri Amari (NuriAmari)

Changes

#109847 inadvertently introduced compile errors to the gold plugin. This PR fixes the issue.


Full diff: https://github.com/llvm/llvm-project/pull/111402.diff

1 Files Affected:

  • (modified) llvm/tools/gold/gold-plugin.cpp (+1-1)
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index 9304bd4188d9ed..6d0021c85f20fb 100644
--- a/llvm/tools/gold/gold-plugin.cpp
+++ b/llvm/tools/gold/gold-plugin.cpp
@@ -899,7 +899,7 @@ static std::unique_ptr<LTO> createLTO(IndexWriteCallback OnIndexWrite,
     std::string OldPrefix, NewPrefix;
     getThinLTOOldAndNewPrefix(OldPrefix, NewPrefix);
     Backend = createWriteIndexesThinBackend(
-        llvm::hardware_concurrency(options::Parallelism) OldPrefix, NewPrefix,
+        llvm::hardware_concurrency(options::Parallelism), OldPrefix, NewPrefix,
         // TODO: Add support for optional native object path in
         // thinlto_prefix_replace option to match lld.
         /*NativeObjectPrefix=*/"", options::thinlto_emit_imports_files,

@NuriAmari
Copy link
Contributor Author

Closing in favor of #111412

@NuriAmari NuriAmari closed this Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

LTO Link time optimization (regular/full LTO or ThinLTO)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants