@@ -3071,8 +3071,9 @@ static SILFunction *getOrCreateKeyPathGetter(SILGenModule &SGM,
3071
3071
auto baseArg = entry->createFunctionArgument (baseArgTy);
3072
3072
SILValue indexPtrArg;
3073
3073
if (!indexes.empty ()) {
3074
- auto indexArgTy = signature->getParameters ()[1 ].getSILStorageType (
3075
- SGM.M , signature, subSGF.F .getTypeExpansionContext ());
3074
+ auto indexArgTy =
3075
+ subSGF.silConv .getSILType (signature->getParameters ()[1 ], signature,
3076
+ subSGF.F .getTypeExpansionContext ());
3076
3077
indexPtrArg = entry->createFunctionArgument (indexArgTy);
3077
3078
}
3078
3079
@@ -3234,10 +3235,12 @@ static SILFunction *getOrCreateKeyPathSetter(SILGenModule &SGM,
3234
3235
subSGF.F .getTypeExpansionContext ());
3235
3236
3236
3237
auto entry = thunk->begin ();
3237
- auto valueArgTy = signature->getParameters ()[0 ].getSILStorageType (
3238
- SGM.M , signature, subSGF.getTypeExpansionContext ());
3239
- auto baseArgTy = signature->getParameters ()[1 ].getSILStorageType (
3240
- SGM.M , signature, subSGF.getTypeExpansionContext ());
3238
+ auto valueArgTy =
3239
+ subSGF.silConv .getSILType (signature->getParameters ()[0 ], signature,
3240
+ subSGF.getTypeExpansionContext ());
3241
+ auto baseArgTy =
3242
+ subSGF.silConv .getSILType (signature->getParameters ()[1 ], signature,
3243
+ subSGF.getTypeExpansionContext ());
3241
3244
if (genericEnv) {
3242
3245
valueArgTy = genericEnv->mapTypeIntoContext (SGM.M , valueArgTy);
3243
3246
baseArgTy = genericEnv->mapTypeIntoContext (SGM.M , baseArgTy);
@@ -3247,8 +3250,9 @@ static SILFunction *getOrCreateKeyPathSetter(SILGenModule &SGM,
3247
3250
SILValue indexPtrArg;
3248
3251
3249
3252
if (!indexes.empty ()) {
3250
- auto indexArgTy = signature->getParameters ()[2 ].getSILStorageType (
3251
- SGM.M , signature, subSGF.getTypeExpansionContext ());
3253
+ auto indexArgTy =
3254
+ subSGF.silConv .getSILType (signature->getParameters ()[2 ], signature,
3255
+ subSGF.getTypeExpansionContext ());
3252
3256
indexPtrArg = entry->createFunctionArgument (indexArgTy);
3253
3257
}
3254
3258
@@ -3414,10 +3418,10 @@ getOrCreateKeyPathEqualsAndHash(SILGenModule &SGM,
3414
3418
SILGenFunction subSGF (SGM, *equals, SGM.SwiftModule );
3415
3419
equals->setGenericEnvironment (genericEnv);
3416
3420
auto entry = equals->begin ();
3417
- auto lhsPtr = entry->createFunctionArgument (params[ 0 ]. getSILStorageType (
3418
- SGM. M , signature, subSGF.getTypeExpansionContext ()));
3419
- auto rhsPtr = entry->createFunctionArgument (params[ 1 ]. getSILStorageType (
3420
- SGM. M , signature, subSGF.getTypeExpansionContext ()));
3421
+ auto lhsPtr = entry->createFunctionArgument (subSGF. silConv . getSILType (
3422
+ params[ 0 ] , signature, subSGF.getTypeExpansionContext ()));
3423
+ auto rhsPtr = entry->createFunctionArgument (subSGF. silConv . getSILType (
3424
+ params[ 1 ] , signature, subSGF.getTypeExpansionContext ()));
3421
3425
3422
3426
Scope scope (subSGF, loc);
3423
3427
@@ -3588,8 +3592,8 @@ getOrCreateKeyPathEqualsAndHash(SILGenModule &SGM,
3588
3592
SILGenFunction subSGF (SGM, *hash, SGM.SwiftModule );
3589
3593
hash->setGenericEnvironment (genericEnv);
3590
3594
auto entry = hash->begin ();
3591
- auto indexPtr = entry->createFunctionArgument (params[ 0 ]. getSILStorageType (
3592
- SGM. M , signature, subSGF.getTypeExpansionContext ()));
3595
+ auto indexPtr = entry->createFunctionArgument (subSGF. silConv . getSILType (
3596
+ params[ 0 ] , signature, subSGF.getTypeExpansionContext ()));
3593
3597
3594
3598
SILValue hashCode;
3595
3599
0 commit comments