@@ -3190,15 +3190,12 @@ get(GenericTypeDecl *TheDecl, Type Parent, const ASTContext &C) {
3190
3190
3191
3191
void BoundGenericType::Profile (llvm::FoldingSetNodeID &ID,
3192
3192
NominalTypeDecl *TheDecl, Type Parent,
3193
- ArrayRef<Type> GenericArgs,
3194
- RecursiveTypeProperties &properties) {
3193
+ ArrayRef<Type> GenericArgs) {
3195
3194
ID.AddPointer (TheDecl);
3196
3195
ID.AddPointer (Parent.getPointer ());
3197
- if (Parent) properties |= Parent->getRecursiveProperties ();
3198
3196
ID.AddInteger (GenericArgs.size ());
3199
3197
for (Type Arg : GenericArgs) {
3200
3198
ID.AddPointer (Arg.getPointer ());
3201
- properties |= Arg->getRecursiveProperties ();
3202
3199
}
3203
3200
}
3204
3201
@@ -3224,8 +3221,12 @@ BoundGenericType *BoundGenericType::get(NominalTypeDecl *TheDecl,
3224
3221
3225
3222
ASTContext &C = TheDecl->getDeclContext ()->getASTContext ();
3226
3223
llvm::FoldingSetNodeID ID;
3224
+ BoundGenericType::Profile (ID, TheDecl, Parent, GenericArgs);
3227
3225
RecursiveTypeProperties properties;
3228
- BoundGenericType::Profile (ID, TheDecl, Parent, GenericArgs, properties);
3226
+ if (Parent) properties |= Parent->getRecursiveProperties ();
3227
+ for (Type Arg : GenericArgs) {
3228
+ properties |= Arg->getRecursiveProperties ();
3229
+ }
3229
3230
3230
3231
auto arena = getArena (properties);
3231
3232
0 commit comments