@@ -82,6 +82,10 @@ struct BridgedResultInfo {
82
82
swift::TypeBase * _Nonnull type;
83
83
BridgedResultConvention convention;
84
84
85
+ // Ensure that this struct value type will be indirectly returned on
86
+ // Windows ARM64
87
+ BridgedResultInfo () {}
88
+
85
89
#ifdef USED_IN_CPP_SOURCE
86
90
inline static BridgedResultConvention
87
91
castToResultConvention (swift::ResultConvention convention) {
@@ -99,6 +103,10 @@ struct OptionalBridgedResultInfo {
99
103
swift::TypeBase * _Nullable type = nullptr ;
100
104
BridgedResultConvention convention = BridgedResultConvention::Indirect;
101
105
106
+ // Ensure that this struct value type will be indirectly returned on
107
+ // Windows ARM64
108
+ OptionalBridgedResultInfo () {}
109
+
102
110
#ifdef USED_IN_CPP_SOURCE
103
111
OptionalBridgedResultInfo (std::optional<swift::SILResultInfo> resultInfo) {
104
112
if (resultInfo) {
@@ -113,6 +121,10 @@ struct OptionalBridgedResultInfo {
113
121
struct BridgedResultInfoArray {
114
122
BridgedArrayRef resultInfoArray;
115
123
124
+ // Ensure that this struct value type will be indirectly returned on
125
+ // Windows ARM64
126
+ BridgedResultInfoArray () {}
127
+
116
128
#ifdef USED_IN_CPP_SOURCE
117
129
BridgedResultInfoArray (llvm::ArrayRef<swift::SILResultInfo> results)
118
130
: resultInfoArray(results) {}
@@ -195,6 +207,10 @@ struct BridgedParameterInfo {
195
207
struct BridgedParameterInfoArray {
196
208
BridgedArrayRef parameterInfoArray;
197
209
210
+ // Ensure that this struct value type will be indirectly returned on
211
+ // Windows ARM64
212
+ BridgedParameterInfoArray () {}
213
+
198
214
#ifdef USED_IN_CPP_SOURCE
199
215
BridgedParameterInfoArray (llvm::ArrayRef<swift::SILParameterInfo> parameters)
200
216
: parameterInfoArray(parameters) {}
@@ -213,6 +229,10 @@ struct BridgedParameterInfoArray {
213
229
struct BridgedYieldInfoArray {
214
230
BridgedArrayRef yieldInfoArray;
215
231
232
+ // Ensure that this struct value type will be indirectly returned on
233
+ // Windows ARM64
234
+ BridgedYieldInfoArray () {}
235
+
216
236
#ifdef USED_IN_CPP_SOURCE
217
237
BridgedYieldInfoArray (llvm::ArrayRef<swift::SILYieldInfo> yields)
218
238
: yieldInfoArray(yields) {}
@@ -303,6 +323,10 @@ struct BridgedType {
303
323
struct EnumElementIterator {
304
324
uint64_t storage[4 ];
305
325
326
+ // Ensure that this struct value type will be indirectly returned on
327
+ // Windows ARM64
328
+ EnumElementIterator () {}
329
+
306
330
#ifdef USED_IN_CPP_SOURCE
307
331
EnumElementIterator (swift::EnumDecl::ElementRange::iterator i) {
308
332
static_assert (sizeof (EnumElementIterator) >= sizeof (swift::EnumDecl::ElementRange::iterator));
@@ -316,6 +340,10 @@ struct BridgedType {
316
340
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE EnumElementIterator getNext () const ;
317
341
};
318
342
343
+ // Ensure that this struct value type will be indirectly returned on
344
+ // Windows ARM64
345
+ BridgedType () {}
346
+
319
347
#ifdef USED_IN_CPP_SOURCE
320
348
BridgedType (swift::SILType t) : opaqueValue(t.getOpaqueValue()) {}
321
349
@@ -698,6 +726,10 @@ struct BridgedTypeArray {
698
726
struct BridgedSILTypeArray {
699
727
BridgedArrayRef typeArray;
700
728
729
+ // Ensure that this struct value type will be indirectly returned on
730
+ // Windows ARM64
731
+ BridgedSILTypeArray () {}
732
+
701
733
#ifdef USED_IN_CPP_SOURCE
702
734
BridgedSILTypeArray (llvm::ArrayRef<swift::SILType> silTypes)
703
735
: typeArray(silTypes) {}
@@ -716,6 +748,10 @@ struct BridgedSILTypeArray {
716
748
struct BridgedLocation {
717
749
uint64_t storage[3 ];
718
750
751
+ // Ensure that this struct value type will be indirectly returned on
752
+ // Windows ARM64
753
+ BridgedLocation () {}
754
+
719
755
#ifdef USED_IN_CPP_SOURCE
720
756
BridgedLocation (const swift::SILDebugLocation &loc) {
721
757
*reinterpret_cast <swift::SILDebugLocation *>(&storage) = loc;
@@ -742,6 +778,10 @@ struct BridgedGenericSpecializationInformation {
742
778
struct OptionalBridgedSILDebugVariable {
743
779
uint64_t storage[16 ];
744
780
781
+ // Ensure that this struct value type will be indirectly returned on
782
+ // Windows ARM64
783
+ OptionalBridgedSILDebugVariable () {}
784
+
745
785
#ifdef USED_IN_CPP_SOURCE
746
786
using OptionalSILDebugVariable = std::optional<swift::SILDebugVariable>;
747
787
0 commit comments