Commit 5e0487a
authored
[CIR] Fix parsing of #cir.unwind and cir.resume for catch regions (#1859)
1. **Catch Entry Parsing**: `parseCatchEntry` in `CIRDialect.cpp` now
properly handles `#cir.unwind` attributes
2. **Resume Operation**: Fix record definition of `cir.resume` in order
to handle locations correctly
## Issue:
- `error: expected '{' to begin a region` when parsing `catch
[#cir.unwind {`
- `error: undefined symbol alias id` when parsing `cir.resume loc(#loc)`1 parent 1bd9d47 commit 5e0487a
File tree
3 files changed
+78
-16
lines changed- clang
- include/clang/CIR/Dialect/IR
- lib/CIR/Dialect/IR
- test/CIR/IR
3 files changed
+78
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1095 | 1095 | | |
1096 | 1096 | | |
1097 | 1097 | | |
1098 | | - | |
1099 | | - | |
1100 | | - | |
| 1098 | + | |
| 1099 | + | |
1101 | 1100 | | |
1102 | 1101 | | |
1103 | 1102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1709 | 1709 | | |
1710 | 1710 | | |
1711 | 1711 | | |
1712 | | - | |
1713 | 1712 | | |
1714 | 1713 | | |
1715 | | - | |
1716 | | - | |
1717 | | - | |
1718 | | - | |
1719 | | - | |
1720 | | - | |
1721 | | - | |
1722 | | - | |
1723 | | - | |
1724 | | - | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
1725 | 1725 | | |
1726 | | - | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
1727 | 1729 | | |
1728 | | - | |
1729 | 1730 | | |
1730 | 1731 | | |
1731 | 1732 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
0 commit comments