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) {
664664
665665 if (F->getFunctionType ()->isVarArg ())
666666 return false ;
667+
668+ if (F->getCallingConv () == CallingConv::SwiftTail)
669+ return false ;
667670
668671 unsigned Benefit = getBenefit (F);
669672 if (Benefit < FunctionMergeThreshold)
Original file line number Diff line number Diff line change @@ -41,6 +41,30 @@ struct TestError: Error {}
4141 }
4242 await task. get ( )
4343 }
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+ }
4468 }
4569
4670 await runAllTestsAsync ( )
You can’t perform that action at this time.
0 commit comments