[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 23:19:35 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:

Oh, I misremembered it. It'll be good to add a such API.

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


More information about the cfe-commits mailing list