Hiroshi Yamauchi
|
f815e1429e
|
Ensure that BridgedTypeArray is indirectly returned
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.
Add this constructor so that the calling convention matches.
This is a fix for the OnoneSimplification crash in
https://github.com/swiftlang/swift/issues/74866#issuecomment-2319618579
and is a partial fix for
https://github.com/swiftlang/swift/issues/74866#issuecomment-2319618579
|
2024-09-12 10:46:55 -07:00 |
|