mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Create helpers in InstructionUtils.h wherever we need a guarantee that the diagnostics cover the same patterns as the verifier. Eventually this will be called from both SILVerifier and the diagnostic pass: - findAccessedAddressBase - isPossibleFormalAccessBase - isPartialApplyOfReabstractionThunk - findClosureForAppliedArg - visitAccessedAddress Add partial_apply verification assert. This applies the normal "find a closure" logic inside the "find all partial_apply uses" verification. Making the verifier round-trip ensures that we don't have holes in exclusivity enforcement related to this logic.
25 KiB
25 KiB