]> granicus.if.org Git - clang/commitdiff
[AST] Tighten up the bitfield in TemplateSpecializationType
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 7 Jul 2016 04:43:11 +0000 (04:43 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 7 Jul 2016 04:43:11 +0000 (04:43 +0000)
Optimize the bitfield types to conserve space for the MSVC ABI.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274733 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Type.h

index 7642ad48128dcd928bb433a8a4191538303000f1..1067c086c764a38247ad59e11b3654fca1931479 100644 (file)
@@ -4168,7 +4168,7 @@ class LLVM_ALIGNAS(/*alignof(uint64_t)*/ 8) TemplateSpecializationType
   unsigned NumArgs : 31;
 
   /// Whether this template specialization type is a substituted type alias.
-  bool TypeAlias : 1;
+  unsigned TypeAlias : 1;
 
   TemplateSpecializationType(TemplateName T,
                              ArrayRef<TemplateArgument> Args,