swift
36f450c2 - Ensure that bridged types are indirectly returned on Windows ARM64

Commit
338 days ago
Ensure that bridged types are indirectly returned on Windows ARM64 On Windows ARM64, how a struct value type is returned is sensitive to conditions including whether a user-defined constructor exists, etc. See https://learn.microsoft.com/en-us/cpp/build/arm64-windows-abi-conventions?view=msvc-170#return-values That caused a calling convention mismatch between the non-USED_IN_CPP_SOURCE (Swift) side and the USE_IN_CPP_SOURCE (C++) side and a crash. Following #76433 add constructors to several bridged C++ struct/class types so that the calling convention matches. This is a partial fix for #74866 Cherrypick https://github.com/swiftlang/swift/pull/76589
Author
Parents
Loading