mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
791f0796e2
Dead code elimination is not aware of the fact that distributed function accessors and witnesses are actually used by the runtime, and therefore may remove them. 🧟 This seems to have flown under the radar however when whole module optimization is enabled in release mode this can trigger reliably and result in pointing at deleted witnesses. This PR mades a few cleanups in the way we mark and handle distributed accessors so they don't get optimized away. This is an additional fix on top of https://github.com/swiftlang/swift/pull/87453 Resolves rdar://168881945