Skip to content

Commit 70d7745

Browse files
authored
Merge pull request #11980 from zisko/swift-4.0-branch
Bump Swift Compiler version to 4.0.1
2 parents e75a4a7 + ed46527 commit 70d7745

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ set_property(CACHE SWIFT_ANALYZE_CODE_COVERAGE PROPERTY
108108
# SWIFT_VERSION is deliberately /not/ cached so that an existing build directory
109109
# can be reused when a new version of Swift comes out (assuming the user hasn't
110110
# manually set it as part of their own CMake configuration).
111-
set(SWIFT_VERSION "4.0")
111+
set(SWIFT_VERSION "4.0.1")
112112

113113
set(SWIFT_VENDOR "" CACHE STRING
114114
"The vendor name of the Swift compiler")

test/Parse/ConditionalCompilation/language_version_explicit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
asdf asdf asdf asdf
2222
#endif
2323

24-
#if swift(>=4.0.1)
24+
#if swift(>=4.0.2)
2525
// This shouldn't emit any diagnostics.
2626
asdf asdf asdf asdf
2727
#else

test/Serialization/Recovery/crash-recovery.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class Sub: Base {
1414

1515
// CHECK-CRASH: error: fatal error encountered while reading from module 'Lib'; please file a bug report with your project and the crash log
1616
// CHECK-CRASH-3-NOT: note
17-
// CHECK-CRASH-4: note: compiling as Swift 4.0, with 'Lib' built as Swift 3.2
17+
// CHECK-CRASH-4: note: compiling as Swift 4.0.1, with 'Lib' built as Swift 3.2
1818
// CHECK-CRASH-LABEL: *** DESERIALIZATION FAILURE (please include this section in any bug report) ***
1919
// CHECK-CRASH: could not find 'disappearingMethod()' in parent class
2020
// CHECK-CRASH: While loading members for 'Sub' in module 'Lib'

test/Serialization/Recovery/types-4-to-3.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import Lib
1616
func requiresConformance(_: B_RequiresConformance<B_ConformsToProto>) {}
1717
func requiresConformance(_: B_RequiresConformance<C_RelyOnConformanceImpl.Assoc>) {}
1818

19-
class Sub: Base {} // expected-error {{cannot inherit from class 'Base' (compiled with Swift 4.0) because it has overridable members that could not be loaded in Swift 3.2}}
20-
class Impl: Proto {} // expected-error {{type 'Impl' cannot conform to protocol 'Proto' (compiled with Swift 4.0) because it has requirements that could not be loaded in Swift 3.2}}
19+
class Sub: Base {} // expected-error {{cannot inherit from class 'Base' (compiled with Swift 4.0.1) because it has overridable members that could not be loaded in Swift 3.2}}
20+
class Impl: Proto {} // expected-error {{type 'Impl' cannot conform to protocol 'Proto' (compiled with Swift 4.0.1) because it has requirements that could not be loaded in Swift 3.2}}
2121

2222
#else // TEST
2323

utils/build-script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2060,7 +2060,7 @@ iterations with -O",
20602060
"--swift-user-visible-version",
20612061
help="User-visible version of the embedded Swift compiler",
20622062
type=arguments.type.swift_compiler_version,
2063-
default="4.0",
2063+
default="4.0.1",
20642064
metavar="MAJOR.MINOR")
20652065

20662066
parser.add_argument(

0 commit comments

Comments
 (0)