File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -664,6 +664,9 @@ static bool isEligibleFunction(Function *F) {
664
664
665
665
if (F->getFunctionType ()->isVarArg ())
666
666
return false ;
667
+
668
+ if (F->getCallingConv () == CallingConv::SwiftTail)
669
+ return false ;
667
670
668
671
unsigned Benefit = getBenefit (F);
669
672
if (Benefit < FunctionMergeThreshold)
Original file line number Diff line number Diff line change @@ -41,6 +41,30 @@ struct TestError: Error {}
41
41
}
42
42
await task. get ( )
43
43
}
44
+
45
+ tests. test ( " test withCheckedThrowingContinuation " ) {
46
+ let task2 = detach {
47
+ do {
48
+ let x : Int = try await withCheckedThrowingContinuation { c in
49
+ c. resume ( returning: 17 )
50
+ }
51
+ expectEqual ( 17 , x)
52
+ } catch {
53
+ }
54
+ }
55
+
56
+ let task = detach {
57
+ do {
58
+ let x : Int = try await withCheckedThrowingContinuation { c in
59
+ c. resume ( returning: 17 )
60
+ }
61
+ expectEqual ( 17 , x)
62
+ } catch {
63
+ }
64
+ }
65
+ await task. get ( )
66
+ await task2. get ( )
67
+ }
44
68
}
45
69
46
70
await runAllTestsAsync ( )
You can’t perform that action at this time.
0 commit comments