Commit b6521e8
authored
[flang][OpenMP] Show error for task depend with no valid modifiers (llvm#142595)
If a "TASK DEPEND" clause is not given a valid task dependece type
modifier, the semantic checks for the clause will result in an ICE
because they assume that such modifiers will be present. Check whether
the modifiers are present and show an appropriate error instead of
crashing the compiler if they are not.
Fixes llvm#133678.
Signed-off-by: Kajetan Puchalski <[email protected]>1 parent 419d1c2 commit b6521e8
File tree
2 files changed
+15
-0
lines changed- flang
- lib/Semantics
- test/Semantics/OpenMP
2 files changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4420 | 4420 | | |
4421 | 4421 | | |
4422 | 4422 | | |
| 4423 | + | |
| 4424 | + | |
| 4425 | + | |
| 4426 | + | |
| 4427 | + | |
| 4428 | + | |
| 4429 | + | |
4423 | 4430 | | |
4424 | 4431 | | |
4425 | 4432 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments