[lld] [lld][WebAssembly] Fix spurious signature mismatch under LTO (PR #136197)

Daniel Bertalan via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 18 09:34:59 PDT 2025


================
@@ -108,9 +108,10 @@ BitcodeCompiler::~BitcodeCompiler() = default;
 
 static void undefine(Symbol *s) {
   if (auto f = dyn_cast<DefinedFunction>(s))
+    // If the signature is null, there were no calls from non-bitcode objects.
     replaceSymbol<UndefinedFunction>(f, f->getName(), std::nullopt,
                                      std::nullopt, 0, f->getFile(),
-                                     f->signature);
+                                     f->signature, f->signature != nullptr);
----------------
BertalanD wrote:

thanks!

https://github.com/llvm/llvm-project/pull/136197


More information about the llvm-commits mailing list