File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -2715,20 +2715,18 @@ namespace {
2715
2715
auto underlyingDependentType = R.getFirstType ()->getCanonicalType ();
2716
2716
2717
2717
auto underlyingType =
2718
- underlyingDependentType.subst (substitutions)-> getCanonicalType () ;
2718
+ underlyingDependentType.subst (substitutions);
2719
2719
auto underlyingConformance =
2720
2720
substitutions.lookupConformance (underlyingDependentType, P);
2721
2721
2722
2722
if (underlyingType->hasTypeParameter ()) {
2723
- underlyingConformance = underlyingConformance.subst (
2724
- underlyingType, QueryInterfaceTypeSubstitutions (genericEnv),
2725
- LookUpConformanceInModule ());
2726
-
2727
- underlyingType = genericEnv->mapTypeIntoContext (underlyingType)
2728
- ->getCanonicalType ();
2723
+ std::tie (underlyingType, underlyingConformance)
2724
+ = GenericEnvironment::mapConformanceRefIntoContext (
2725
+ genericEnv, underlyingType, underlyingConformance);
2729
2726
}
2730
2727
2731
- return emitWitnessTableRef (IGF, underlyingType, underlyingConformance);
2728
+ return emitWitnessTableRef (IGF, underlyingType->getCanonicalType (),
2729
+ underlyingConformance);
2732
2730
}
2733
2731
};
2734
2732
};
You can’t perform that action at this time.
0 commit comments