swift
swift copied to clipboard
[move-only] Do not attempt to lazily deserialize the moveonly deinit table in IRGen.
The reason to avoid this is if we attempt to lazily deserialize the moveonly deinit table, we may also attempt to deserialize a deinit function. This would result in us breaking the invariant that we no longer deserialize SILFunctions once we are in LoweredSIL.
If we fail to lazily deserialize, we instead just call the deinit via the destroy value witness of the type.
This only affects builds built with asserts enabled since llvm_unreachable is compiled out when NDEBUG is set.
rdar://110496872
@swift-ci test
@swift-ci please Build Toolchain macOS Platform
@swift-ci test
@swift-ci please Build Toolchain macOS Platform