@@ -83,6 +83,10 @@ struct BridgedResultInfo {
8383 swift::TypeBase * _Nonnull type;
8484 BridgedResultConvention convention;
8585
86+ // Ensure that this struct value type will be indirectly returned on
87+ // Windows ARM64
88+ BridgedResultInfo () {}
89+
8690#ifdef USED_IN_CPP_SOURCE
8791 inline static BridgedResultConvention
8892 castToResultConvention (swift::ResultConvention convention) {
@@ -100,6 +104,10 @@ struct OptionalBridgedResultInfo {
100104 swift::TypeBase * _Nullable type = nullptr ;
101105 BridgedResultConvention convention = BridgedResultConvention::Indirect;
102106
107+ // Ensure that this struct value type will be indirectly returned on
108+ // Windows ARM64
109+ OptionalBridgedResultInfo () {}
110+
103111#ifdef USED_IN_CPP_SOURCE
104112 OptionalBridgedResultInfo (std::optional<swift::SILResultInfo> resultInfo) {
105113 if (resultInfo) {
@@ -114,6 +122,10 @@ struct OptionalBridgedResultInfo {
114122struct BridgedResultInfoArray {
115123 BridgedArrayRef resultInfoArray;
116124
125+ // Ensure that this struct value type will be indirectly returned on
126+ // Windows ARM64
127+ BridgedResultInfoArray () {}
128+
117129#ifdef USED_IN_CPP_SOURCE
118130 BridgedResultInfoArray (llvm::ArrayRef<swift::SILResultInfo> results)
119131 : resultInfoArray(results) {}
@@ -217,6 +229,10 @@ struct BridgedParameterInfo {
217229struct BridgedParameterInfoArray {
218230 BridgedArrayRef parameterInfoArray;
219231
232+ // Ensure that this struct value type will be indirectly returned on
233+ // Windows ARM64
234+ BridgedParameterInfoArray () {}
235+
220236#ifdef USED_IN_CPP_SOURCE
221237 BridgedParameterInfoArray (llvm::ArrayRef<swift::SILParameterInfo> parameters)
222238 : parameterInfoArray(parameters) {}
@@ -235,6 +251,10 @@ struct BridgedParameterInfoArray {
235251struct BridgedYieldInfoArray {
236252 BridgedArrayRef yieldInfoArray;
237253
254+ // Ensure that this struct value type will be indirectly returned on
255+ // Windows ARM64
256+ BridgedYieldInfoArray () {}
257+
238258#ifdef USED_IN_CPP_SOURCE
239259 BridgedYieldInfoArray (llvm::ArrayRef<swift::SILYieldInfo> yields)
240260 : yieldInfoArray(yields) {}
@@ -255,6 +275,10 @@ struct BridgedLifetimeDependenceInfo {
255275 SwiftUInt targetIndex;
256276 bool immortal;
257277
278+ // Ensure that this struct value type will be indirectly returned on
279+ // Windows ARM64
280+ BridgedLifetimeDependenceInfo () {}
281+
258282#ifdef USED_IN_CPP_SOURCE
259283 BridgedLifetimeDependenceInfo (swift::LifetimeDependenceInfo info)
260284 : inheritLifetimeParamIndices(info.getInheritIndices()),
@@ -273,6 +297,10 @@ struct BridgedLifetimeDependenceInfo {
273297struct BridgedLifetimeDependenceInfoArray {
274298 BridgedArrayRef lifetimeDependenceInfoArray;
275299
300+ // Ensure that this struct value type will be indirectly returned on
301+ // Windows ARM64
302+ BridgedLifetimeDependenceInfoArray () {}
303+
276304#ifdef USED_IN_CPP_SOURCE
277305 BridgedLifetimeDependenceInfoArray (
278306 llvm::ArrayRef<swift::LifetimeDependenceInfo> lifetimeDependenceInfo)
@@ -373,6 +401,10 @@ struct BridgedType {
373401 struct EnumElementIterator {
374402 uint64_t storage[4 ];
375403
404+ // Ensure that this struct value type will be indirectly returned on
405+ // Windows ARM64
406+ EnumElementIterator () {}
407+
376408#ifdef USED_IN_CPP_SOURCE
377409 EnumElementIterator (swift::EnumDecl::ElementRange::iterator i) {
378410 static_assert (sizeof (EnumElementIterator) >= sizeof (swift::EnumDecl::ElementRange::iterator));
@@ -386,6 +418,10 @@ struct BridgedType {
386418 SWIFT_IMPORT_UNSAFE BRIDGED_INLINE EnumElementIterator getNext () const ;
387419 };
388420
421+ // Ensure that this struct value type will be indirectly returned on
422+ // Windows ARM64
423+ BridgedType () {}
424+
389425#ifdef USED_IN_CPP_SOURCE
390426 BridgedType (swift::SILType t) : opaqueValue(t.getOpaqueValue()) {}
391427
@@ -573,6 +609,10 @@ enum class BridgedMemoryBehavior {
573609struct BridgedLocation {
574610 uint64_t storage[3 ];
575611
612+ // Ensure that this struct value type will be indirectly returned on
613+ // Windows ARM64
614+ BridgedLocation () {}
615+
576616#ifdef USED_IN_CPP_SOURCE
577617 BridgedLocation (const swift::SILDebugLocation &loc) {
578618 *reinterpret_cast <swift::SILDebugLocation *>(&storage) = loc;
@@ -804,6 +844,10 @@ struct BridgedTypeArray {
804844struct BridgedSILTypeArray {
805845 BridgedArrayRef typeArray;
806846
847+ // Ensure that this struct value type will be indirectly returned on
848+ // Windows ARM64
849+ BridgedSILTypeArray () {}
850+
807851#ifdef USED_IN_CPP_SOURCE
808852 BridgedSILTypeArray (llvm::ArrayRef<swift::SILType> silTypes)
809853 : typeArray(silTypes) {}
@@ -826,6 +870,10 @@ struct BridgedGenericSpecializationInformation {
826870struct OptionalBridgedSILDebugVariable {
827871 uint64_t storage[16 ];
828872
873+ // Ensure that this struct value type will be indirectly returned on
874+ // Windows ARM64
875+ OptionalBridgedSILDebugVariable () {}
876+
829877#ifdef USED_IN_CPP_SOURCE
830878 using OptionalSILDebugVariable = std::optional<swift::SILDebugVariable>;
831879
0 commit comments