Commit fd6141e
committed
[CIR] Gracefully fail null getIdentifier() and large _BitInt
Fail gracefully when `getIdentifier()` for a declaration is null, such for
an overloaded operator. Report an error and skip the declaration.
Fail gracefully when processing a large `_BitInt`, with a width greater
than 128. Report an error and return `int` instead.
Remove the remaining fixed-point integral types from `convertType`.
Nothing can be done with them because fixed-point operations are not yet
implemented in the incubator, and I am not convinced that the types are
being converted correctly.
A couple small fixes to comments and documentation and formatting.1 parent 58310a1 commit fd6141e
File tree
4 files changed
+32
-25
lines changed- clang
- include/clang/CIR/Dialect/IR
- lib/CIR/CodeGen
4 files changed
+32
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
89 | | - | |
90 | | - | |
91 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
92 | 102 | | |
93 | 103 | | |
94 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
25 | | - | |
26 | 28 | | |
27 | | - | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
32 | | - | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | | - | |
37 | | - | |
38 | 35 | | |
39 | 36 | | |
40 | 37 | | |
41 | 38 | | |
42 | 39 | | |
43 | 40 | | |
| 41 | + | |
44 | 42 | | |
45 | 43 | | |
46 | | - | |
47 | 44 | | |
48 | | - | |
49 | 45 | | |
50 | | - | |
51 | 46 | | |
52 | 47 | | |
53 | 48 | | |
54 | | - | |
55 | | - | |
56 | 49 | | |
57 | 50 | | |
58 | | - | |
59 | | - | |
60 | 51 | | |
61 | 52 | | |
62 | 53 | | |
| |||
72 | 63 | | |
73 | 64 | | |
74 | 65 | | |
75 | | - | |
76 | | - | |
77 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
78 | 75 | | |
79 | 76 | | |
80 | 77 | | |
| |||
0 commit comments