[clang] [clang-tools-extra] [clang] Improved canonicalization for template specialization types (PR #135119)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 10 08:57:41 PDT 2025


================
@@ -168,6 +168,8 @@ class TemplateArgument {
     LLVM_PREFERRED_TYPE(bool)
     unsigned IsDefaulted : 1;
     uintptr_t V;
+    LLVM_PREFERRED_TYPE(bool)
+    unsigned IsCanonicalExpr : 1;
----------------
erichkeane wrote:

Oh, yeah, definitely agree there.  It would be nice if we spent some time going through the list to try to space-optimize, but as you mentioned, this isn't hte 'worst'.  The  suggestion is mostly that perhaps we can shrink some of the others over time (or this one gets bigger!) and we have some room before it becomes the biggest.

https://github.com/llvm/llvm-project/pull/135119


More information about the cfe-commits mailing list