================
@@ -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:
As long as we can GetDeclRef on it, it is referenced.
https://github.com/llvm/llvm-project/pull/191658
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits