Commit 044e1aa
authored
[flang][OpenMP] move omp end sections validation to semantics (llvm#154740)
See llvm#90452. The old parse tree errors exploded to thousands of unhelpful
lines when there were multiple missing end directives.
Instead, allow a missing end directive in the parse tree then validate
that it is present during semantics (where the error messages are a lot
easier to control).1 parent 3c2df33 commit 044e1aa
File tree
6 files changed
+28
-9
lines changed- flang
- include/flang/Parser
- lib
- Lower/OpenMP
- Parser
- Semantics
- test/Semantics/OpenMP
6 files changed
+28
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4893 | 4893 | | |
4894 | 4894 | | |
4895 | 4895 | | |
| 4896 | + | |
| 4897 | + | |
| 4898 | + | |
4896 | 4899 | | |
4897 | | - | |
| 4900 | + | |
4898 | 4901 | | |
4899 | 4902 | | |
4900 | 4903 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3979 | 3979 | | |
3980 | 3980 | | |
3981 | 3981 | | |
3982 | | - | |
| 3982 | + | |
| 3983 | + | |
| 3984 | + | |
| 3985 | + | |
3983 | 3986 | | |
3984 | | - | |
| 3987 | + | |
3985 | 3988 | | |
3986 | 3989 | | |
3987 | 3990 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1921 | 1921 | | |
1922 | 1922 | | |
1923 | 1923 | | |
1924 | | - | |
| 1924 | + | |
1925 | 1925 | | |
1926 | 1926 | | |
1927 | 1927 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2788 | 2788 | | |
2789 | 2789 | | |
2790 | 2790 | | |
2791 | | - | |
| 2791 | + | |
2792 | 2792 | | |
2793 | 2793 | | |
2794 | 2794 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1138 | 1138 | | |
1139 | 1139 | | |
1140 | 1140 | | |
1141 | | - | |
| 1141 | + | |
| 1142 | + | |
1142 | 1143 | | |
1143 | 1144 | | |
1144 | | - | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
1145 | 1155 | | |
1146 | 1156 | | |
1147 | | - | |
1148 | | - | |
| 1157 | + | |
1149 | 1158 | | |
1150 | 1159 | | |
1151 | 1160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
0 commit comments