Skip to content

Commit bd37998

Browse files
committed
Make sure that SILResultInfo::{getWithInterfaceType,getWithConvention}() propagates result options.
I discovered this while trying to figure out why we were dropping a sending bit when computing a reabstraction thunk in the tests for the following commit. This turned out to be the reason why.
1 parent 01faf1f commit bd37998

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/AST/Types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4842,12 +4842,12 @@ class SILResultInfo {
48424842
SILType getSILStorageInterfaceType() const;
48434843
/// Return a version of this result info with the type replaced.
48444844
SILResultInfo getWithInterfaceType(CanType type) const {
4845-
return SILResultInfo(type, getConvention());
4845+
return SILResultInfo(type, getConvention(), getOptions());
48464846
}
48474847

48484848
/// Return a version of this result info with the convention replaced.
48494849
SILResultInfo getWithConvention(ResultConvention c) const {
4850-
return SILResultInfo(getInterfaceType(), c);
4850+
return SILResultInfo(getInterfaceType(), c, getOptions());
48514851
}
48524852

48534853
// Does this result convention require indirect storage? This reflects a

0 commit comments

Comments
 (0)