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

Paul Kirth via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 12 15:59:58 PST 2025


================
@@ -365,7 +387,8 @@ static bool isEmptyModule(const Module &Mod) {
 bool lto::opt(const Config &Conf, TargetMachine *TM, unsigned Task, Module &Mod,
               bool IsThinLTO, ModuleSummaryIndex *ExportSummary,
               const ModuleSummaryIndex *ImportSummary,
-              const std::vector<uint8_t> &CmdArgs) {
+              const std::vector<uint8_t> &CmdArgs,
+              const SmallVector<StringRef> &BitcodeLibFuncs) {
----------------
ilovepi wrote:

If this is never modified, it can be an `ArrayRef<StringRef>`, right?

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


More information about the llvm-commits mailing list