aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Parser/executable-parsers.cpp
diff options
context:
space:
mode:
authorValentin Clement <clementval@gmail.com>2023-06-13 13:57:43 -0700
committerValentin Clement <clementval@gmail.com>2023-06-13 13:58:20 -0700
commit561a3697099aa74fcbaf426e6d0ebeb783b57a1e (patch)
treee3f6f9a128213342631445c4d831a26deeaf74d4 /flang/lib/Parser/executable-parsers.cpp
parent88c2c2eff77b521a5c6ed5f412438f094c14c17d (diff)
downloadllvm-561a3697099aa74fcbaf426e6d0ebeb783b57a1e.zip
llvm-561a3697099aa74fcbaf426e6d0ebeb783b57a1e.tar.gz
llvm-561a3697099aa74fcbaf426e6d0ebeb783b57a1e.tar.bz2
[flang][openacc] Relax rule for end directive on combined construct
Make the keyword `loop` optional for the end driective on combined construct. This done to extend compatibility with other compiler that allow this. Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D151856
Diffstat (limited to 'flang/lib/Parser/executable-parsers.cpp')
-rw-r--r--flang/lib/Parser/executable-parsers.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/flang/lib/Parser/executable-parsers.cpp b/flang/lib/Parser/executable-parsers.cpp
index 56ca3ed..a61bf2c 100644
--- a/flang/lib/Parser/executable-parsers.cpp
+++ b/flang/lib/Parser/executable-parsers.cpp
@@ -52,8 +52,7 @@ constexpr auto executableConstruct{first(
construct<ExecutableConstruct>(indirect(forallConstruct)),
construct<ExecutableConstruct>(indirect(ompEndLoopDirective)),
construct<ExecutableConstruct>(indirect(openmpConstruct)),
- construct<ExecutableConstruct>(indirect(accEndCombinedDirective)),
- construct<ExecutableConstruct>(indirect(openaccConstruct)),
+ construct<ExecutableConstruct>(indirect(Parser<OpenACCConstruct>{})),
construct<ExecutableConstruct>(indirect(compilerDirective)),
construct<ExecutableConstruct>(indirect(Parser<CUFKernelDoConstruct>{})))};