Skip to content

Commit f52bd2a

Browse files
authored
Merge pull request #3962 from swiftwasm/release/5.5
2 parents 35b53c8 + c1776ee commit f52bd2a

File tree

6 files changed

+32
-9
lines changed

6 files changed

+32
-9
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ set(SWIFT_ANALYZE_CODE_COVERAGE FALSE CACHE STRING
148148
# SWIFT_VERSION is deliberately /not/ cached so that an existing build directory
149149
# can be reused when a new version of Swift comes out (assuming the user hasn't
150150
# manually set it as part of their own CMake configuration).
151-
set(SWIFT_VERSION "5.5")
151+
set(SWIFT_VERSION "5.5.2")
152152

153153
set(SWIFT_VENDOR "" CACHE STRING
154154
"The vendor name of the Swift compiler")

test/IRGen/async/hop_to_executor.sil

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
// RUN: %target-swift-frontend -enable-experimental-concurrency -primary-file %s -module-name=test -disable-llvm-optzns -disable-swift-specific-llvm-optzns -emit-ir -sil-verify-all | %IRGenFileCheck %s
1+
// RUN: %target-swift-frontend -enable-experimental-concurrency -primary-file %s -module-name=test -disable-llvm-optzns -disable-swift-specific-llvm-optzns -emit-ir -sil-verify-all | %IRGenFileCheck %s -check-prefix CHECK-%target-abi
22

33
// REQUIRES: concurrency
44

5+
// WASI does not support the mandatory tail call, and needs to take the same
6+
// path as CHECK-WIN, but will currently go down CHECK-SYSV, failing the test.
7+
// XFAIL: OS=wasi
8+
59
sil_stage canonical
610

711
import Builtin
@@ -10,13 +14,14 @@ import _Concurrency
1014

1115
// CHECK-LABEL: define{{.*}} void @test_simple(
1216
// CHECK-SAME: %swift.context* swiftasync %0, [[INT]] %1, [[INT]] %2)
13-
// CHECK: [[CTX:%[0-9]+]] = bitcast %swift.context* %0
14-
// CHECK: [[RESUME:%[0-9]+]] = call i8* @llvm.coro.async.resume()
17+
// CHECK-DAG: [[CTX:%[0-9]+]] = bitcast %swift.context* %0
18+
// CHECK-DAG: [[RESUME:%[0-9]+]] = call i8* @llvm.coro.async.resume()
1519
// CHECK-x86_64: call {{.*}} @llvm.coro.suspend.async{{.*}}(i32 0, i8* [[RESUME]], i8* bitcast (i8* (i8*)* @__swift_async_resume_get_context to i8*), i8* bitcast (void (i8*, [[INT]], [[INT]], %swift.context*)* @__swift_suspend_point to i8*), i8* [[RESUME]], [[INT]] %1, [[INT]] %2, %swift.context* {{%[0-9]+}})
1620
// CHECK-arm64e: call {{.*}} @llvm.coro.suspend.async{{.*}}(i32 0, i8* [[RESUME]], i8* bitcast (i8* (i8*)* @__swift_async_resume_get_context to i8*), i8* bitcast (void (i8*, [[INT]], [[INT]], %swift.context*)* @__swift_suspend_point to i8*), i8* [[RESUME]], [[INT]] %1, [[INT]] %2, %swift.context* {{%[0-9]+}})
1721
// CHECK: [[RET_CONTINUATION:%.*]] = bitcast void (%swift.context*)* {{.*}} to i8*
1822
// CHECK: call i1 (i8*, i1, ...) @llvm.coro.end.async(i8* {{.*}}, i1 false, void (i8*, %swift.context*)* @[[TAIL_CALL_FUNC:.*]], i8* [[RET_CONTINUATION]]
19-
// CHECK: unreachable
23+
// CHECK-WIN: ret void
24+
// CHECK-SYSV: unreachable
2025

2126
sil @test_simple : $@async (@guaranteed Optional<Builtin.Executor>) -> () {
2227
bb0(%0 : $Optional<Builtin.Executor>):
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Ensure that IRGen don't emit unreachable after coro.end.async for targets that don't support musttail call.
2+
// RUN: %target-swift-frontend -disable-legacy-type-info -parse-stdlib %s -disable-llvm-optzns -disable-swift-specific-llvm-optzns -disable-objc-interop -module-name main -emit-ir -o - | %FileCheck %s
3+
4+
// REQUIRES: concurrency
5+
// REQUIRES: OS=wasi || OS=windows-msvc
6+
7+
sil_stage canonical
8+
9+
import Builtin
10+
11+
sil @test_simple : $@async () -> () {
12+
bb0:
13+
%0 = tuple ()
14+
return %0 : $()
15+
// CHECK: call i1 (i8*, i1, ...) @llvm.coro.end.async
16+
// CHECK-NOT: unreachable
17+
// CHECK: ret void
18+
}

test/Serialization/Recovery/types-5-to-4.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 5.5) because it has overridable members that could not be loaded in Swift 4.1.50}}
20-
class Impl: Proto {} // expected-error {{type 'Impl' cannot conform to protocol 'Proto' (compiled with Swift 5.5) because it has requirements that could not be loaded in Swift 4.1.50}}
19+
class Sub: Base {} // expected-error {{cannot inherit from class 'Base' (compiled with Swift 5.5.2) because it has overridable members that could not be loaded in Swift 4.1.50}}
20+
class Impl: Proto {} // expected-error {{type 'Impl' cannot conform to protocol 'Proto' (compiled with Swift 5.5.2) because it has requirements that could not be loaded in Swift 4.1.50}}
2121

2222
#else // TEST
2323

test/SourceKit/Misc/compiler_version.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
// CHECK: key.version_major: 5
44
// CHECK: key.version_minor: 5
5-
// CHECK: key.version_patch: 0
5+
// CHECK: key.version_patch: 2

utils/build_swift/build_swift/defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
CMAKE_GENERATOR = 'Ninja'
5050

5151
COMPILER_VENDOR = 'none'
52-
SWIFT_USER_VISIBLE_VERSION = Version('5.5')
52+
SWIFT_USER_VISIBLE_VERSION = Version('5.5.2')
5353
CLANG_USER_VISIBLE_VERSION = Version('10.0.0')
5454
SWIFT_ANALYZE_CODE_COVERAGE = 'false'
5555

0 commit comments

Comments
 (0)