[clang] [lld] [llvm] [LTO][LLD] Prevent invalid LTO libfunc transforms (PR #164916)

Teresa Johnson via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 11 07:26:03 PST 2026


================
@@ -1447,7 +1449,7 @@ void BitcodeFile::parse() {
           symtab.addRegular(this, symName, nullptr, fakeSC, 0, objSym.isWeak());
     }
     symbols.push_back(sym);
-    if (objSym.isUsed() || objSym.isLibcall(libcalls))
+    if (objSym.isUsed() || objSym.isLibcall(tli, libcalls))
----------------
teresajohnson wrote:

Yeah I agree with @nikic, if it is straightforward I would just include in all of the linker formats.

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


More information about the cfe-commits mailing list