Skip to content

Commit 36e1e52

Browse files
committed
[type-lowering] When determining lowered rvalue types, don't look through moveonlywrapped.
This ensures that we do not lose the move only wrapper from the input type if is SILMoveOnlyWrapped.
1 parent ded34af commit 36e1e52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/SIL/TypeLowering.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -961,12 +961,12 @@ class TypeConverter {
961961
}
962962

963963
CanType getLoweredRValueType(TypeExpansionContext context, Type t) {
964-
return getLoweredType(t, context).getASTType();
964+
return getLoweredType(t, context).getRawASTType();
965965
}
966966

967967
CanType getLoweredRValueType(TypeExpansionContext context,
968968
AbstractionPattern origType, Type substType) {
969-
return getLoweredType(origType, substType, context).getASTType();
969+
return getLoweredType(origType, substType, context).getRawASTType();
970970
}
971971

972972
AbstractionPattern getAbstractionPattern(AbstractStorageDecl *storage,

0 commit comments

Comments
 (0)