aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/ExprClassification.cpp
diff options
context:
space:
mode:
authorErich Keane <ekeane@nvidia.com>2024-04-25 10:22:03 -0700
committerGitHub <noreply@github.com>2024-04-25 10:22:03 -0700
commit39adc8f423297c5741bb731bb8b1e545d558502c (patch)
tree4112878bc2fa3ed08d5644644e72e867b7505e86 /clang/lib/AST/ExprClassification.cpp
parent8dc7db7a24633f55ef28f2ab4b379386a34505f8 (diff)
downloadllvm-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/AST/ExprClassification.cpp')
-rw-r--r--clang/lib/AST/ExprClassification.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ExprClassification.cpp b/clang/lib/AST/ExprClassification.cpp
index 7026fca..2bb8f9a 100644
--- a/clang/lib/AST/ExprClassification.cpp
+++ b/clang/lib/AST/ExprClassification.cpp
@@ -145,7 +145,7 @@ static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E) {
case Expr::FunctionParmPackExprClass:
case Expr::MSPropertyRefExprClass:
case Expr::MSPropertySubscriptExprClass:
- case Expr::OMPArraySectionExprClass:
+ case Expr::ArraySectionExprClass:
case Expr::OMPArrayShapingExprClass:
case Expr::OMPIteratorExprClass:
return Cl::CL_LValue;