[clang] [clang] fix definition data not being propagated to all redecls (PR #157019)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 4 22:40:03 PDT 2025
================
@@ -2107,6 +2107,8 @@ void ASTDeclMerger::MergeDefinitionData(
auto *Def = DD.Definition;
DD = std::move(MergeDD);
DD.Definition = Def;
+ for (auto *TD : Def->redecls())
----------------
ChuanqiXu9 wrote:
I am not sure if we should use `noload_redecls()` since redecls may trigger loading.
https://github.com/llvm/llvm-project/pull/157019
More information about the cfe-commits
mailing list