================
@@ -2107,8 +2107,8 @@ void ASTDeclMerger::MergeDefinitionData(
auto *Def = DD.Definition;
DD = std::move(MergeDD);
DD.Definition = Def;
- while ((Def = Def->getPreviousDecl()))
- cast<CXXRecordDecl>(Def)->DefinitionData = ⅅ
+ for (auto *D : Def->redecls())
+ cast<CXXRecordDecl>(D)->DefinitionData = ⅅ
----------------
hahnjo wrote:
Not really, I consider this a fix of the code introduced in #157019 and I would
really like to make progress with #133057...
https://github.com/llvm/llvm-project/pull/170090
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits