================ @@ -1474,6 +1474,11 @@ DeclContext *DeclContext::getPrimaryContext() { case Decl::ObjCCategoryImpl: return this; + case Decl::CXXRecord: + if (auto *OPD = dyn_cast<CXXRecordDecl>(this)) + if (auto *Def = OPD->getDefinition()) + return Def; + return this; default: ---------------- hekota wrote:
Why is this necessary? https://github.com/llvm/llvm-project/pull/116699 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits