@@ -83,6 +83,10 @@ struct BridgedResultInfo {
83
83
swift::TypeBase * _Nonnull type;
84
84
BridgedResultConvention convention;
85
85
86
+ // Ensure that this struct value type will be indirectly returned on
87
+ // Windows ARM64
88
+ BridgedResultInfo () {}
89
+
86
90
#ifdef USED_IN_CPP_SOURCE
87
91
inline static BridgedResultConvention
88
92
castToResultConvention (swift::ResultConvention convention) {
@@ -100,6 +104,10 @@ struct OptionalBridgedResultInfo {
100
104
swift::TypeBase * _Nullable type = nullptr ;
101
105
BridgedResultConvention convention = BridgedResultConvention::Indirect;
102
106
107
+ // Ensure that this struct value type will be indirectly returned on
108
+ // Windows ARM64
109
+ OptionalBridgedResultInfo () {}
110
+
103
111
#ifdef USED_IN_CPP_SOURCE
104
112
OptionalBridgedResultInfo (std::optional<swift::SILResultInfo> resultInfo) {
105
113
if (resultInfo) {
@@ -114,6 +122,10 @@ struct OptionalBridgedResultInfo {
114
122
struct BridgedResultInfoArray {
115
123
BridgedArrayRef resultInfoArray;
116
124
125
+ // Ensure that this struct value type will be indirectly returned on
126
+ // Windows ARM64
127
+ BridgedResultInfoArray () {}
128
+
117
129
#ifdef USED_IN_CPP_SOURCE
118
130
BridgedResultInfoArray (llvm::ArrayRef<swift::SILResultInfo> results)
119
131
: resultInfoArray(results) {}
@@ -217,6 +229,10 @@ struct BridgedParameterInfo {
217
229
struct BridgedParameterInfoArray {
218
230
BridgedArrayRef parameterInfoArray;
219
231
232
+ // Ensure that this struct value type will be indirectly returned on
233
+ // Windows ARM64
234
+ BridgedParameterInfoArray () {}
235
+
220
236
#ifdef USED_IN_CPP_SOURCE
221
237
BridgedParameterInfoArray (llvm::ArrayRef<swift::SILParameterInfo> parameters)
222
238
: parameterInfoArray(parameters) {}
@@ -235,6 +251,10 @@ struct BridgedParameterInfoArray {
235
251
struct BridgedYieldInfoArray {
236
252
BridgedArrayRef yieldInfoArray;
237
253
254
+ // Ensure that this struct value type will be indirectly returned on
255
+ // Windows ARM64
256
+ BridgedYieldInfoArray () {}
257
+
238
258
#ifdef USED_IN_CPP_SOURCE
239
259
BridgedYieldInfoArray (llvm::ArrayRef<swift::SILYieldInfo> yields)
240
260
: yieldInfoArray(yields) {}
@@ -255,6 +275,10 @@ struct BridgedLifetimeDependenceInfo {
255
275
SwiftUInt targetIndex;
256
276
bool immortal;
257
277
278
+ // Ensure that this struct value type will be indirectly returned on
279
+ // Windows ARM64
280
+ BridgedLifetimeDependenceInfo () {}
281
+
258
282
#ifdef USED_IN_CPP_SOURCE
259
283
BridgedLifetimeDependenceInfo (swift::LifetimeDependenceInfo info)
260
284
: inheritLifetimeParamIndices(info.getInheritIndices()),
@@ -273,6 +297,10 @@ struct BridgedLifetimeDependenceInfo {
273
297
struct BridgedLifetimeDependenceInfoArray {
274
298
BridgedArrayRef lifetimeDependenceInfoArray;
275
299
300
+ // Ensure that this struct value type will be indirectly returned on
301
+ // Windows ARM64
302
+ BridgedLifetimeDependenceInfoArray () {}
303
+
276
304
#ifdef USED_IN_CPP_SOURCE
277
305
BridgedLifetimeDependenceInfoArray (
278
306
llvm::ArrayRef<swift::LifetimeDependenceInfo> lifetimeDependenceInfo)
@@ -373,6 +401,10 @@ struct BridgedType {
373
401
struct EnumElementIterator {
374
402
uint64_t storage[4 ];
375
403
404
+ // Ensure that this struct value type will be indirectly returned on
405
+ // Windows ARM64
406
+ EnumElementIterator () {}
407
+
376
408
#ifdef USED_IN_CPP_SOURCE
377
409
EnumElementIterator (swift::EnumDecl::ElementRange::iterator i) {
378
410
static_assert (sizeof (EnumElementIterator) >= sizeof (swift::EnumDecl::ElementRange::iterator));
@@ -386,6 +418,10 @@ struct BridgedType {
386
418
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE EnumElementIterator getNext () const ;
387
419
};
388
420
421
+ // Ensure that this struct value type will be indirectly returned on
422
+ // Windows ARM64
423
+ BridgedType () {}
424
+
389
425
#ifdef USED_IN_CPP_SOURCE
390
426
BridgedType (swift::SILType t) : opaqueValue(t.getOpaqueValue()) {}
391
427
@@ -573,6 +609,10 @@ enum class BridgedMemoryBehavior {
573
609
struct BridgedLocation {
574
610
uint64_t storage[3 ];
575
611
612
+ // Ensure that this struct value type will be indirectly returned on
613
+ // Windows ARM64
614
+ BridgedLocation () {}
615
+
576
616
#ifdef USED_IN_CPP_SOURCE
577
617
BridgedLocation (const swift::SILDebugLocation &loc) {
578
618
*reinterpret_cast <swift::SILDebugLocation *>(&storage) = loc;
@@ -804,6 +844,10 @@ struct BridgedTypeArray {
804
844
struct BridgedSILTypeArray {
805
845
BridgedArrayRef typeArray;
806
846
847
+ // Ensure that this struct value type will be indirectly returned on
848
+ // Windows ARM64
849
+ BridgedSILTypeArray () {}
850
+
807
851
#ifdef USED_IN_CPP_SOURCE
808
852
BridgedSILTypeArray (llvm::ArrayRef<swift::SILType> silTypes)
809
853
: typeArray(silTypes) {}
@@ -826,6 +870,10 @@ struct BridgedGenericSpecializationInformation {
826
870
struct OptionalBridgedSILDebugVariable {
827
871
uint64_t storage[16 ];
828
872
873
+ // Ensure that this struct value type will be indirectly returned on
874
+ // Windows ARM64
875
+ OptionalBridgedSILDebugVariable () {}
876
+
829
877
#ifdef USED_IN_CPP_SOURCE
830
878
using OptionalSILDebugVariable = std::optional<swift::SILDebugVariable>;
831
879
0 commit comments