Skip to content

Commit a970778

Browse files
committed
IRGen: Update diagnostics to take AvailabilityRange instead of VersionTuple.
1 parent 4373825 commit a970778

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

include/swift/AST/DiagnosticsIRGen.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ ERROR(attr_objc_implementation_resilient_property_deployment_target, none,
7575
"'@implementation' on %0 %1 does not support stored properties whose "
7676
"size can change due to library evolution; raise the minimum deployment "
7777
"target to %0 %2 or store this value in an object or 'any' type",
78-
(AvailabilityDomain, const llvm::VersionTuple, const llvm::VersionTuple))
78+
(AvailabilityDomain, const AvailabilityRange, const AvailabilityRange))
7979

8080
ERROR(unable_to_load_pass_plugin,none,
8181
"unable to load plugin '%0': '%1'", (StringRef, StringRef))

lib/IRGen/GenMeta.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5232,9 +5232,8 @@ diagnoseUnsupportedObjCImplLayout(IRGenModule &IGM, ClassDecl *classDecl,
52325232
diags.diagnose(
52335233
field.getVarDecl(),
52345234
diag::attr_objc_implementation_resilient_property_deployment_target,
5235-
ctx.getTargetAvailabilityDomain(),
5236-
currentAvailability.getRawMinimumVersion(),
5237-
requiredAvailability.getRawMinimumVersion());
5235+
ctx.getTargetAvailabilityDomain(), currentAvailability,
5236+
requiredAvailability);
52385237
else
52395238
diags.diagnose(
52405239
field.getVarDecl(),

0 commit comments

Comments
 (0)