Commit 5413a2b
authored
[clang][OpenMP] Fix error handling of the adjust_args clause (llvm#94696)
Static verifier noticed the current code has logically dead code parsing
the clause where IsComma is assigned. Fix this and improve the error
message received when a bad adjust-op is specified.
This will now be handled like 'map' where a nice diagnostic is given
with the correct values, then parsing continues on the next clause
reducing unhelpful diagnostics.1 parent 313b1a8 commit 5413a2b
File tree
3 files changed
+15
-3
lines changed- clang
- include/clang/Basic
- lib/Parse
- test/OpenMP
3 files changed
+15
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1508 | 1508 | | |
1509 | 1509 | | |
1510 | 1510 | | |
| 1511 | + | |
| 1512 | + | |
1511 | 1513 | | |
1512 | 1514 | | |
1513 | 1515 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4785 | 4785 | | |
4786 | 4786 | | |
4787 | 4787 | | |
4788 | | - | |
4789 | | - | |
| 4788 | + | |
| 4789 | + | |
4790 | 4790 | | |
4791 | 4791 | | |
4792 | 4792 | | |
| |||
4799 | 4799 | | |
4800 | 4800 | | |
4801 | 4801 | | |
4802 | | - | |
| 4802 | + | |
4803 | 4803 | | |
4804 | 4804 | | |
4805 | 4805 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
189 | 199 | | |
190 | 200 | | |
191 | 201 | | |
| |||
0 commit comments