diff options
author | erichkeane <ekeane@nvidia.com> | 2025-01-06 11:59:04 -0800 |
---|---|---|
committer | erichkeane <ekeane@nvidia.com> | 2025-01-07 08:20:20 -0800 |
commit | db81e8c42e121e62a00587b12d2b972dfcfb98c0 (patch) | |
tree | 831171ac55852ccb502239a37d65e4fc3058d9d9 /clang/lib/Sema/SemaExceptionSpec.cpp | |
parent | 56c5a6ba836065a6e3be9d04e2c64aa8a758a3f4 (diff) | |
download | llvm-db81e8c42e121e62a00587b12d2b972dfcfb98c0.zip llvm-db81e8c42e121e62a00587b12d2b972dfcfb98c0.tar.gz llvm-db81e8c42e121e62a00587b12d2b972dfcfb98c0.tar.bz2 |
[OpenACC] Initial sema implementation of 'update' construct
This executable construct has a larger list of clauses than some of the
others, plus has some additional restrictions. This patch implements
the AST node, plus the 'cannot be the body of a if, while, do, switch,
or label' statement restriction. Future patches will handle the
rest of the restrictions, which are based on clauses.
Diffstat (limited to 'clang/lib/Sema/SemaExceptionSpec.cpp')
-rw-r--r-- | clang/lib/Sema/SemaExceptionSpec.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaExceptionSpec.cpp b/clang/lib/Sema/SemaExceptionSpec.cpp index 94f59bb..ac5d51a1 100644 --- a/clang/lib/Sema/SemaExceptionSpec.cpp +++ b/clang/lib/Sema/SemaExceptionSpec.cpp @@ -1402,6 +1402,7 @@ CanThrowResult Sema::canThrow(const Stmt *S) { case Stmt::OpenACCInitConstructClass: case Stmt::OpenACCShutdownConstructClass: case Stmt::OpenACCSetConstructClass: + case Stmt::OpenACCUpdateConstructClass: // These expressions can never throw. return CT_Cannot; |