r274733 - [AST] Tighten up the bitfield in TemplateSpecializationType
David Majnemer via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 6 21:43:12 PDT 2016
Author: majnemer
Date: Wed Jul 6 23:43:11 2016
New Revision: 274733
URL: http://llvm.org/viewvc/llvm-project?rev=274733&view=rev
Log:
[AST] Tighten up the bitfield in TemplateSpecializationType
Optimize the bitfield types to conserve space for the MSVC ABI.
Modified:
cfe/trunk/include/clang/AST/Type.h
Modified: cfe/trunk/include/clang/AST/Type.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Type.h?rev=274733&r1=274732&r2=274733&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/trunk/include/clang/AST/Type.h Wed Jul 6 23:43:11 2016
@@ -4168,7 +4168,7 @@ class LLVM_ALIGNAS(/*alignof(uint64_t)*/
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,
More information about the cfe-commits
mailing list