[llvm] [ThinLTO] Distinguish symbols that are promoted (PR #181946)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 18 12:10:04 PST 2026


================
@@ -416,7 +416,8 @@ static void thinLTOResolvePrevailingGUID(
     // supported by the target. In this case, we can't change the linkage as
     // well in case the global is converted to declaration.
     else if (!isa<AliasSummary>(S.get()) &&
-             !GlobalInvolvedWithAlias.count(S.get()) && !ForceImportAll)
+             !GlobalInvolvedWithAlias.count(S.get()) && !ForceImportAll &&
+             !S->wasPromoted())
----------------
mtrofin wrote:

ya, it'd need managing the visibility. added an assert to document the relation between promoted and prevailing.

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


More information about the llvm-commits mailing list