[llvm-branch-commits] [llvm] [NFC] `CfiFunctions` are relevant when promoting from the original module only (PR #181080)

Mircea Trofin via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Feb 11 19:21:34 PST 2026


https://github.com/mtrofin created https://github.com/llvm/llvm-project/pull/181080

None

>From 82373f64744732c418b992ec4abfb5d11c691f1d Mon Sep 17 00:00:00 2001
From: Mircea Trofin <mtrofin at google.com>
Date: Wed, 11 Feb 2026 19:21:09 -0800
Subject: [PATCH] [NFC] `CfiFunctions` are relevant when promoting from the
 original module only

---
 llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp b/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
index d1dc8164d1b46..60c65bd8bbf48 100644
--- a/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
+++ b/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
@@ -411,7 +411,7 @@ void splitAndWriteThinLTOBitcode(
     return true;
   });
 
-  promoteInternals(*MergedM, M, ModuleId, CfiFunctions);
+  promoteInternals(*MergedM, M, ModuleId, {});
   promoteInternals(M, *MergedM, ModuleId, CfiFunctions);
 
   auto &Ctx = MergedM->getContext();



More information about the llvm-branch-commits mailing list