================
@@ -2545,10 +2545,12 @@ ASTDeclReader::VisitClassTemplateSpecializationDeclImpl(
   }
 
   // Explicit info.
-  if (TypeSourceInfo *TyInfo = readTypeSourceInfo()) {
-    auto *ExplicitInfo =
-        new (C) ClassTemplateSpecializationDecl::ExplicitSpecializationInfo;
-    ExplicitInfo->TypeAsWritten = TyInfo;
+  if (Record.readBool()) {
+    // FIXME: We don't need to allocate this if ExternLoc and 
TemplateKeywordLoc
----------------
sdkrystian wrote:

I am planning to address the fixme prior to landing this, so it will likely end 
up reading as follows:
```cpp
if (Record.readBool()) {
  // allocate explicit instantiation info and read ExternLoc and 
TemplateKeywordLoc
}

if (Record.readBool())
  D->setTemplateArgsAsWritten(Record.readASTTemplateArgumentListInfo());
```

https://github.com/llvm/llvm-project/pull/81642
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to