We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8f3191a + 8bb3248 commit ce5bef8Copy full SHA for ce5bef8
include/swift/SIL/TypeSubstCloner.h
@@ -187,8 +187,10 @@ class TypeSubstCloner : public SILClonerWithScopes<ImplClass> {
187
.shouldLookThroughOpaqueTypeArchetypes())
188
return substTy;
189
// Remap types containing opaque result types in the current context.
190
- return getBuilder().getModule().Types.getLoweredRValueType(
191
- TypeExpansionContext(getBuilder().getFunction()), substTy);
+ return substOpaqueTypesWithUnderlyingTypes(
+ substTy,
192
+ TypeExpansionContext(getBuilder().getFunction()),
193
+ /*allowLoweredTypes=*/false);
194
}
195
196
ProtocolConformanceRef remapConformance(Type ty,
0 commit comments