Commit fa54ff8
committed
IRGen: Fix lowering of Builtin.createAsyncTask and Builtin.createAsyncTaskFuture
Thick async functions store their async context size in the closure
context. Only if the closure context is nil can we assume the
partial_apply_forwarder function to be the address of an async function
pointer struct value.1 parent cd8029a commit fa54ff8
File tree
3 files changed
+31
-25
lines changed- include/swift/Runtime
- lib/IRGen
- test/IRGen/async
3 files changed
+31
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1498 | 1498 | | |
1499 | 1499 | | |
1500 | 1500 | | |
1501 | | - | |
| 1501 | + | |
| 1502 | + | |
1502 | 1503 | | |
1503 | | - | |
| 1504 | + | |
1504 | 1505 | | |
1505 | 1506 | | |
1506 | | - | |
| 1507 | + | |
1507 | 1508 | | |
1508 | 1509 | | |
1509 | | - | |
| 1510 | + | |
1510 | 1511 | | |
1511 | | - | |
| 1512 | + | |
1512 | 1513 | | |
1513 | | - | |
| 1514 | + | |
1514 | 1515 | | |
1515 | 1516 | | |
1516 | 1517 | | |
1517 | | - | |
| 1518 | + | |
1518 | 1519 | | |
1519 | 1520 | | |
1520 | 1521 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3600 | 3600 | | |
3601 | 3601 | | |
3602 | 3602 | | |
3603 | | - | |
3604 | | - | |
3605 | 3603 | | |
3606 | 3604 | | |
3607 | 3605 | | |
| |||
3625 | 3623 | | |
3626 | 3624 | | |
3627 | 3625 | | |
| 3626 | + | |
| 3627 | + | |
| 3628 | + | |
| 3629 | + | |
| 3630 | + | |
| 3631 | + | |
| 3632 | + | |
| 3633 | + | |
| 3634 | + | |
3628 | 3635 | | |
3629 | 3636 | | |
3630 | 3637 | | |
3631 | | - | |
| 3638 | + | |
3632 | 3639 | | |
3633 | | - | |
3634 | | - | |
3635 | | - | |
| 3640 | + | |
| 3641 | + | |
3636 | 3642 | | |
3637 | 3643 | | |
3638 | 3644 | | |
3639 | 3645 | | |
3640 | 3646 | | |
3641 | | - | |
3642 | | - | |
3643 | | - | |
3644 | | - | |
3645 | | - | |
3646 | | - | |
3647 | | - | |
3648 | | - | |
3649 | | - | |
3650 | | - | |
| 3647 | + | |
| 3648 | + | |
| 3649 | + | |
| 3650 | + | |
| 3651 | + | |
| 3652 | + | |
| 3653 | + | |
| 3654 | + | |
| 3655 | + | |
3651 | 3656 | | |
3652 | 3657 | | |
3653 | 3658 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments