aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaExceptionSpec.cpp
diff options
context:
space:
mode:
authorErich Keane <ekeane@nvidia.com>2024-10-03 08:34:43 -0700
committerGitHub <noreply@github.com>2024-10-03 08:34:43 -0700
commitd412cea8c4f26f451aee46641e384e8df62a5904 (patch)
treec2f31cd409d1b2b8a40614f99e34df5a60cd29ac /clang/lib/Sema/SemaExceptionSpec.cpp
parent66227bf7ee2cd674e0306d9a1e9f1d86bc75123f (diff)
downloadllvm-d412cea8c4f26f451aee46641e384e8df62a5904.zip
llvm-d412cea8c4f26f451aee46641e384e8df62a5904.tar.gz
llvm-d412cea8c4f26f451aee46641e384e8df62a5904.tar.bz2
[OpenACC] Implement 'tile' attribute AST (#110999)
The 'tile' clause shares quite a bit of the rules with 'collapse', so a followup patch will add those tests/behaviors. This patch deals with adding the AST node. The 'tile' clause takes a series of integer constant expressions, or *. The asterisk is now represented by a new OpenACCAsteriskSizeExpr node, else this clause is very similar to others.
Diffstat (limited to 'clang/lib/Sema/SemaExceptionSpec.cpp')
-rw-r--r--clang/lib/Sema/SemaExceptionSpec.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaExceptionSpec.cpp b/clang/lib/Sema/SemaExceptionSpec.cpp
index 8aedbfc..dbddd6c 100644
--- a/clang/lib/Sema/SemaExceptionSpec.cpp
+++ b/clang/lib/Sema/SemaExceptionSpec.cpp
@@ -1593,6 +1593,8 @@ CanThrowResult Sema::canThrow(const Stmt *S) {
case Stmt::SYCLUniqueStableNameExprClass:
return CT_Cannot;
+ case Stmt::OpenACCAsteriskSizeExprClass:
+ return CT_Cannot;
case Stmt::NoStmtClass:
llvm_unreachable("Invalid class for statement");
}