Commit f84070b
committed
[flang][OpenMP] move omp end sections validation to semantics
See #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 16662ce commit f84070b
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 | |
|---|---|---|---|
| |||
3958 | 3958 | | |
3959 | 3959 | | |
3960 | 3960 | | |
3961 | | - | |
| 3961 | + | |
| 3962 | + | |
| 3963 | + | |
| 3964 | + | |
3962 | 3965 | | |
3963 | | - | |
| 3966 | + | |
3964 | 3967 | | |
3965 | 3968 | | |
3966 | 3969 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1917 | 1917 | | |
1918 | 1918 | | |
1919 | 1919 | | |
1920 | | - | |
| 1920 | + | |
1921 | 1921 | | |
1922 | 1922 | | |
1923 | 1923 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
1063 | 1063 | | |
1064 | 1064 | | |
1065 | 1065 | | |
1066 | | - | |
| 1066 | + | |
| 1067 | + | |
1067 | 1068 | | |
1068 | 1069 | | |
1069 | | - | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1070 | 1080 | | |
1071 | 1081 | | |
1072 | | - | |
1073 | | - | |
| 1082 | + | |
1074 | 1083 | | |
1075 | 1084 | | |
1076 | 1085 | | |
| |||
| 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