[clang] [clang-tools-extra] [Clang][AST] Introduce `ExplicitInstantiationDecl` to preserve source info and fix diagnostic locations (PR #191658)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 13 00:53:46 PDT 2026
================
@@ -919,6 +919,11 @@ void ASTDeclWriter::VisitFunctionDecl(FunctionDecl *D) {
}
}
+ // Ensure associated ExplicitInstantiationDecl survives reduced BMI.
+ if (auto *EID = Record.getASTContext().getExplicitInstantiationDecl(D))
+ Writer.RelatedDeclsMap[Writer.GetDeclRef(D)].push_back(
----------------
ChuanqiXu9 wrote:
Writer.RelatedDeclsMap not used.
https://github.com/llvm/llvm-project/pull/191658
More information about the cfe-commits
mailing list