Skip to content

Commit a7806db

Browse files
committed
Fix version bugs
Swift 5.3 was the Swift stdlib from 11.0 up to and including 11.2, not 11.3. Swift 5.3 was active from watchOS 7.0 up to and including 7.3, not 7.4.
1 parent 3299803 commit a7806db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Basic/Platform.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ swift::getSwiftRuntimeCompatibilityVersionForTarget(
426426
}
427427
}
428428
} else if (Major == 11) {
429-
if (Minor <= 3)
429+
if (Minor <= 2)
430430
return floorFor64(llvm::VersionTuple(5, 3));
431431

432432
return floorFor64(llvm::VersionTuple(5, 4));
@@ -489,7 +489,7 @@ swift::getSwiftRuntimeCompatibilityVersionForTarget(
489489
return floorFor64bits(llvm::VersionTuple(5, 2));
490490
}
491491
} else if (Major <= 7) {
492-
if (Minor <= 4)
492+
if (Minor <= 3)
493493
return floorFor64bits(llvm::VersionTuple(5, 3));
494494

495495
return floorFor64bits(llvm::VersionTuple(5, 4));

0 commit comments

Comments
 (0)