Skip to content

Commit 06662ce

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. (cherry picked from commit bd37998)
1 parent 714ecbd commit 06662ce

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
@@ -4789,12 +4789,12 @@ class SILResultInfo {
47894789
SILType getSILStorageInterfaceType() const;
47904790
/// Return a version of this result info with the type replaced.
47914791
SILResultInfo getWithInterfaceType(CanType type) const {
4792-
return SILResultInfo(type, getConvention());
4792+
return SILResultInfo(type, getConvention(), getOptions());
47934793
}
47944794

47954795
/// Return a version of this result info with the convention replaced.
47964796
SILResultInfo getWithConvention(ResultConvention c) const {
4797-
return SILResultInfo(getInterfaceType(), c);
4797+
return SILResultInfo(getInterfaceType(), c, getOptions());
47984798
}
47994799

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

0 commit comments

Comments
 (0)