sugak added inline comments.

================
Comment at: clang/lib/AST/ASTContext.cpp:5640
+  DeducedTemplateSpecializationType::Profile(
+      ID, Template, DeducedType, IsDependent || Template.isDependent());
   if (DeducedTemplateSpecializationType *DTST =
----------------
bruno wrote:
> Should this be done in the implementation (like done for the ctor)?
> ```
> static void Profile(llvm::FoldingSetNodeID &ID, TemplateName Template,
>                       QualType Deduced, bool IsDependent) {
>     Template.Profile(ID);
>     ID.AddPointer(Deduced.getAsOpaquePtr());
>     ID.AddBoolean(IsDependent || Template.isDependent());
>   }
> ```
Thanks for the suggestion! Indeed that look better.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112481/new/

https://reviews.llvm.org/D112481

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to