Diagnose deployment constraints on type metadata involving typed throws

Fixes the rest of rdar://121530587.
This commit is contained in:
Doug Gregor
2024-07-03 21:08:54 -07:00
parent 9604019c87
commit 21e5066249
5 changed files with 43 additions and 0 deletions

View File

@@ -6735,6 +6735,11 @@ ERROR(availability_isolated_any_only_version_newer, none,
"%0 %1 or newer",
(StringRef, llvm::VersionTuple))
ERROR(availability_typed_throws_only_version_newer, none,
"runtime support for typed throws function types is only available in "
"%0 %1 or newer",
(StringRef, llvm::VersionTuple))
ERROR(availability_variadic_type_only_version_newer, none,
"parameter packs in generic types are only available in %0 %1 or newer",
(StringRef, llvm::VersionTuple))