File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -1001,7 +1001,7 @@ namespace {
1001
1001
// Emit the dispatch thunk.
1002
1002
auto shouldEmitDispatchThunk =
1003
1003
(Resilient || IGM.getOptions ().WitnessMethodElimination ) &&
1004
- !func.isDistributed ();
1004
+ ( !func.isDistributed () || !func. isDistributedThunk () );
1005
1005
if (shouldEmitDispatchThunk) {
1006
1006
IGM.emitDispatchThunk (func);
1007
1007
}
Original file line number Diff line number Diff line change 9
9
// RUN: -module-name FakeDistributedActorSystems \
10
10
// RUN: %S/../Inputs/FakeDistributedActorSystems.swift \
11
11
// RUN: -enable-library-evolution \
12
+ // RUN: -Xfrontend -validate-tbd-against-ir=all \
12
13
// RUN: -o %t/%target-library-name(FakeDistributedActorSystems)
13
14
14
15
/// Build the Lib
23
24
// RUN: %t/src/ResilientAPILib.swift \
24
25
// RUN: -lFakeDistributedActorSystems \
25
26
// RUN: -enable-library-evolution \
27
+ // RUN: -Xfrontend -validate-tbd-against-ir=all \
26
28
// RUN: -o %t/%target-library-name(ResilientAPILib)
27
29
28
30
/// Build the ActorLib
37
39
// RUN: -lFakeDistributedActorSystems \
38
40
// RUN: -lResilientAPILib \
39
41
// RUN: -enable-library-evolution \
42
+ // RUN: -Xfrontend -validate-tbd-against-ir=all \
40
43
// RUN: -o %t/%target-library-name(ResilientImplLib)
41
44
42
45
/// Build the client
51
54
// RUN: -L %t \
52
55
// RUN: %s \
53
56
// RUN: -enable-library-evolution \
57
+ // RUN: -Xfrontend -validate-tbd-against-ir=all \
54
58
// RUN: -o %t/a.out
55
59
56
60
// Sign the main binary and all libraries
Original file line number Diff line number Diff line change 9
9
// RUN: -enable-library-evolution \
10
10
// RUN: -disable-availability-checking \
11
11
// RUN: -emit-ir -o %t/test.ll -emit-tbd \
12
+ // RUN: -validate-tbd-against-ir=all \
12
13
// RUN: -emit-tbd-path %t/library.tbd -I %t -tbd-install_name protocol
13
14
14
15
// RUN: %target-swift-frontend %t/library.swift \
18
19
// RUN: -package-name Package \
19
20
// RUN: -module-name Library \
20
21
// RUN: -emit-module-path %t/Library.swiftmodule \
22
+ // RUN: -validate-tbd-against-ir=all \
21
23
// RUN: -emit-module-interface-path %t/Library.swiftinterface
22
24
23
- // RUN: %target-swift-frontend %t/actor.swift -enable-library-evolution \
25
+ // RUN: %target-swift-frontend %t/actor.swift \
26
+ // RUN: -enable-library-evolution \
24
27
// RUN: -disable-availability-checking -emit-ir -o %t/test.ll -emit-tbd \
25
28
// RUN: -emit-tbd-path %t/actor.tbd -I %t -tbd-install_name actor
26
29
31
34
// RUN: -package-name Package \
32
35
// RUN: -enable-library-evolution \
33
36
// RUN: -module-name Client \
34
- // RUN: -emit-module-path %t/Client.swiftmodule \
37
+ // RUN: -emit-module-path %t/Client.swiftmodule \
38
+ // RUN: -validate-tbd-against-ir=all \
35
39
// RUN: -emit-module-interface-path %t/Client.swiftinterface
36
40
37
41
You can’t perform that action at this time.
0 commit comments