diff options
author | Erich Keane <ekeane@nvidia.com> | 2024-04-25 10:22:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-25 10:22:03 -0700 |
commit | 39adc8f423297c5741bb731bb8b1e545d558502c (patch) | |
tree | 4112878bc2fa3ed08d5644644e72e867b7505e86 /clang/lib/Sema/SemaExceptionSpec.cpp | |
parent | 8dc7db7a24633f55ef28f2ab4b379386a34505f8 (diff) | |
download | llvm-39adc8f423297c5741bb731bb8b1e545d558502c.zip llvm-39adc8f423297c5741bb731bb8b1e545d558502c.tar.gz llvm-39adc8f423297c5741bb731bb8b1e545d558502c.tar.bz2 |
[NFC] Generalize ArraySections to work for OpenACC in the future (#89639)
OpenACC is going to need an array sections implementation that is a
simpler version/more restrictive version of the OpenMP version.
This patch moves `OMPArraySectionExpr` to `Expr.h` and renames it `ArraySectionExpr`,
then adds an enum to choose between the two.
This also fixes a couple of 'drive-by' issues that I discovered on the way,
but leaves the OpenACC Sema parts reasonably unimplemented (no semantic
analysis implementation), as that will be a followup patch.
Diffstat (limited to 'clang/lib/Sema/SemaExceptionSpec.cpp')
-rw-r--r-- | clang/lib/Sema/SemaExceptionSpec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExceptionSpec.cpp b/clang/lib/Sema/SemaExceptionSpec.cpp index 00384f9d..c9dd6bb 100644 --- a/clang/lib/Sema/SemaExceptionSpec.cpp +++ b/clang/lib/Sema/SemaExceptionSpec.cpp @@ -1314,7 +1314,7 @@ CanThrowResult Sema::canThrow(const Stmt *S) { // Some might be dependent for other reasons. case Expr::ArraySubscriptExprClass: case Expr::MatrixSubscriptExprClass: - case Expr::OMPArraySectionExprClass: + case Expr::ArraySectionExprClass: case Expr::OMPArrayShapingExprClass: case Expr::OMPIteratorExprClass: case Expr::BinaryOperatorClass: |