swift
6f552e00 - Ensure that BridgedTypeArray is indirectly returned

Commit
339 days ago
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 and is a partial fix for Cherrypick https://github.com/swiftlang/swift/pull/76433
Author
Committer
Parents
Loading