diff options
author | erichkeane <ekeane@nvidia.com> | 2024-12-17 07:39:20 -0800 |
---|---|---|
committer | erichkeane <ekeane@nvidia.com> | 2024-12-18 15:06:01 -0800 |
commit | e34cc7c99375c43e1698c78ec9150fa40c88d486 (patch) | |
tree | ac89a9bd53befe50c71804c750dc340c65a06719 /clang/lib/Sema/SemaExceptionSpec.cpp | |
parent | e0526b0780f56eede09b05a859a93626ecdc6e4d (diff) | |
download | llvm-e34cc7c99375c43e1698c78ec9150fa40c88d486.zip llvm-e34cc7c99375c43e1698c78ec9150fa40c88d486.tar.gz llvm-e34cc7c99375c43e1698c78ec9150fa40c88d486.tar.bz2 |
[OpenACC] Implement 'wait' construct
The arguments to this are the same as for the 'wait' clause, so this
reuses all of that infrastructure. So all this has to do is support a
pair of clauses that are already implemented (if and async), plus create
an AST node. This patch does so, and adds proper testing.
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 2be6af2..505cc5e 100644 --- a/clang/lib/Sema/SemaExceptionSpec.cpp +++ b/clang/lib/Sema/SemaExceptionSpec.cpp @@ -1398,6 +1398,7 @@ CanThrowResult Sema::canThrow(const Stmt *S) { case Expr::HLSLOutArgExprClass: case Stmt::OpenACCEnterDataConstructClass: case Stmt::OpenACCExitDataConstructClass: + case Stmt::OpenACCWaitConstructClass: // These expressions can never throw. return CT_Cannot; |