[clang] [OpenMP][NFC] Remove executable cases from declaration switch (PR #106438)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 28 12:04:56 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Mike Rice (mikerice1969)
<details>
<summary>Changes</summary>
The executable directives are handled earlier.
---
Full diff: https://github.com/llvm/llvm-project/pull/106438.diff
1 Files Affected:
- (modified) clang/lib/Parse/ParseOpenMP.cpp (-2)
``````````diff
diff --git a/clang/lib/Parse/ParseOpenMP.cpp b/clang/lib/Parse/ParseOpenMP.cpp
index 61aa72c30a4654..64dfcd47296998 100644
--- a/clang/lib/Parse/ParseOpenMP.cpp
+++ b/clang/lib/Parse/ParseOpenMP.cpp
@@ -2954,8 +2954,6 @@ StmtResult Parser::ParseOpenMPDeclarativeOrExecutableDirective(
}
break;
}
- case OMPD_reverse:
- case OMPD_interchange:
case OMPD_declare_target: {
SourceLocation DTLoc = ConsumeAnyToken();
bool HasClauses = Tok.isNot(tok::annot_pragma_openmp_end);
``````````
</details>
https://github.com/llvm/llvm-project/pull/106438
More information about the cfe-commits
mailing list