mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Suppression of diagnostics about use of unavailable declarations in equivalently unavailable contexts now relies on querying the `TypeRefinementContext` hierarchy. Generation of the TypeRefinementContext tree was suppressed when `-disable-availability-checking` was specified, though, causing some unavailability diagnostics to be emitted when they ought to be suppressed. Instead of refusing to generate a `TypeRefinementContext` hierarchy, instead just avoid populating nodes for `if #available` checks for OS versions since these checks are meant to have no effect when `-disable-availability-checking` is specified. Resolves rdar://138987918.
609 B
609 B