File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ class RecursiveTypeProperties {
182
182
// / Contains a PackType.
183
183
HasPack = 0x10000 ,
184
184
185
- // / Contains a PackArchetypeType.
185
+ // / Contains a PackArchetypeType. Also implies HasPrimaryArchetype.
186
186
HasPackArchetype = 0x20000 ,
187
187
188
188
Last_Property = HasPackArchetype
@@ -205,7 +205,8 @@ class RecursiveTypeProperties {
205
205
bool hasTypeVariable () const { return Bits & HasTypeVariable; }
206
206
207
207
// / Does a type with these properties structurally contain a primary
208
- // / archetype?
208
+ // / or pack archetype? These are the archetypes instantiated from a
209
+ // / primary generic environment.
209
210
bool hasPrimaryArchetype () const { return Bits & HasPrimaryArchetype; }
210
211
211
212
// / Does a type with these properties structurally contain an
@@ -695,7 +696,9 @@ class alignas(1 << TypeAlignInBits) TypeBase
695
696
return getRecursiveProperties ().hasPlaceholder ();
696
697
}
697
698
698
- // / Determine whether the type involves a primary archetype.
699
+ // / Determine whether the type involves a PrimaryArchetypeType *or* a
700
+ // / PackArchetypeType. These are the archetypes instantiated from a
701
+ // / primary generic environment.
699
702
bool hasPrimaryArchetype () const {
700
703
return getRecursiveProperties ().hasPrimaryArchetype ();
701
704
}
You can’t perform that action at this time.
0 commit comments