================
@@ -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(
----------------
16bit-ykiko wrote:

> To solve this, when we write template specialization decl, we need to 
> reference the ExplicitInstantiationDecl to make sure it exists.

How to achieve this?

https://github.com/llvm/llvm-project/pull/191658
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to