File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -103,18 +103,23 @@ class TemplateArgument {
103103 // / The kind of template argument we're storing.
104104
105105 struct DA {
106+ LLVM_PREFERRED_TYPE (ArgKind)
106107 unsigned Kind : 31 ;
108+ LLVM_PREFERRED_TYPE (bool )
107109 unsigned IsDefaulted : 1 ;
108110 void *QT;
109111 ValueDecl *D;
110112 };
111113 struct I {
114+ LLVM_PREFERRED_TYPE (ArgKind)
112115 unsigned Kind : 31 ;
116+ LLVM_PREFERRED_TYPE (bool )
113117 unsigned IsDefaulted : 1 ;
114118 // We store a decomposed APSInt with the data allocated by ASTContext if
115119 // BitWidth > 64. The memory may be shared between multiple
116120 // TemplateArgument instances.
117121 unsigned BitWidth : 31 ;
122+ LLVM_PREFERRED_TYPE (bool )
118123 unsigned IsUnsigned : 1 ;
119124 union {
120125 // / Used to store the <= 64 bits integer value.
@@ -126,19 +131,25 @@ class TemplateArgument {
126131 void *Type;
127132 };
128133 struct A {
134+ LLVM_PREFERRED_TYPE (ArgKind)
129135 unsigned Kind : 31 ;
136+ LLVM_PREFERRED_TYPE (bool )
130137 unsigned IsDefaulted : 1 ;
131138 unsigned NumArgs;
132139 const TemplateArgument *Args;
133140 };
134141 struct TA {
142+ LLVM_PREFERRED_TYPE (ArgKind)
135143 unsigned Kind : 31 ;
144+ LLVM_PREFERRED_TYPE (bool )
136145 unsigned IsDefaulted : 1 ;
137146 unsigned NumExpansions;
138147 void *Name;
139148 };
140149 struct TV {
150+ LLVM_PREFERRED_TYPE (ArgKind)
141151 unsigned Kind : 31 ;
152+ LLVM_PREFERRED_TYPE (bool )
142153 unsigned IsDefaulted : 1 ;
143154 uintptr_t V;
144155 };
You can’t perform that action at this time.
0 commit comments