Commit 99269dd
committed
Sema: Fix preservation of DiagnoseErrorOnTry flag
This fixes a regression from some over-eager logic introduced by my commit
5d6cf5c.
We need to be careful to preserve this flag only in cases where the
throwing-ness bubbles up from the nested ContextScope, namely AwaitExpr
and InterpolatedStringLiteralExpr.
Fixes <rdar://problem/72748150>.1 parent c1d279e commit 99269dd
File tree
4 files changed
+36
-9
lines changed- lib/Sema
- test
- Concurrency
- stmt
4 files changed
+36
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1579 | 1579 | | |
1580 | 1580 | | |
1581 | 1581 | | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
1582 | 1592 | | |
1583 | 1593 | | |
1584 | 1594 | | |
1585 | 1595 | | |
| 1596 | + | |
| 1597 | + | |
1586 | 1598 | | |
1587 | 1599 | | |
1588 | 1600 | | |
| |||
1601 | 1613 | | |
1602 | 1614 | | |
1603 | 1615 | | |
| 1616 | + | |
| 1617 | + | |
1604 | 1618 | | |
1605 | 1619 | | |
1606 | 1620 | | |
1607 | 1621 | | |
1608 | 1622 | | |
1609 | 1623 | | |
1610 | 1624 | | |
1611 | | - | |
1612 | | - | |
1613 | | - | |
1614 | | - | |
1615 | | - | |
1616 | | - | |
1617 | 1625 | | |
1618 | | - | |
1619 | | - | |
1620 | 1626 | | |
1621 | 1627 | | |
1622 | 1628 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
266 | 273 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments