swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.6k stars 10.37k forks source link

[embedded] Force deserialization of wtables when needed to support class-bound existentials #76753

Closed kubamracek closed 1 month ago

kubamracek commented 1 month ago

We currently fail to deserialize wtables in some cases and crash the compiler, see the attached test case that demonstrates that. SILLinker needs to force deserialization of a wtable if it's needed by a InitExistentialRefInst in Embedde Swift mode.

kubamracek commented 1 month ago

@swift-ci please test

kubamracek commented 1 month ago

@swift-ci please test macOS platform