[all-commits] [llvm/llvm-project] 7d812d: [Clang] Retain constructor/destructor variants whe...
Zaara Syeda via All-commits
all-commits at lists.llvm.org
Wed Sep 30 10:59:19 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7d812d2b8aad397ed65a664ca2304500ba311b3f
https://github.com/llvm/llvm-project/commit/7d812d2b8aad397ed65a664ca2304500ba311b3f
Author: Zaara Syeda <syzaara at ca.ibm.com>
Date: 2026-09-30 (Wed, 30 Sep 2026)
Changed paths:
M clang/docs/ReleaseNotes.md
M clang/lib/CodeGen/ItaniumCXXABI.cpp
M clang/test/CodeGen/keep-inline-functions.cpp
M clang/test/CodeGenCXX/attr-used.cpp
Log Message:
-----------
[Clang] Retain constructor/destructor variants when symbol must be kept (#226572)
With -mconstructor-aliases, complete constructor and destructor variants
with discardable-if-unused linkage can be silently replaced in the IR
(RAUW) rather than emitted as distinct symbols. This prevents
-fkeep-inline-functions and `__attribute__((used))` from retaining the
complete (C1/D1) variants.
Skip RAUW when the declaration requires its symbol to be kept by
introducing structorSymbolMustBeRetained(), which returns true when`
__attribute__((used)) `is present or -fkeep-inline-functions is active
for an inline definition that is not available_externally.
Assisted-by: IBM Bob
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list