File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,8 @@ SILType SILFunction::mapTypeIntoContext(SILType type) const {
171
171
172
172
SILType GenericEnvironment::mapTypeIntoContext (SILModule &M,
173
173
SILType type) const {
174
+ assert (!type.hasArchetype ());
175
+
174
176
auto genericSig = getGenericSignature ()->getCanonicalSignature ();
175
177
return type.subst (M,
176
178
QueryInterfaceTypeSubstitutions (this ),
Original file line number Diff line number Diff line change @@ -1063,7 +1063,6 @@ namespace {
1063
1063
outputOrigType, outputTupleType,
1064
1064
loweredTy);
1065
1065
1066
- optionalTy = SGF.F .mapTypeIntoContext (optionalTy);
1067
1066
auto optional = SGF.B .createEnum (Loc, payload.getValue (),
1068
1067
someDecl, optionalTy);
1069
1068
return ManagedValue (optional, payload.getCleanup ());
You can’t perform that action at this time.
0 commit comments