aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaExceptionSpec.cpp
diff options
context:
space:
mode:
authorerichkeane <ekeane@nvidia.com>2024-12-19 06:11:36 -0800
committererichkeane <ekeane@nvidia.com>2024-12-19 12:21:50 -0800
commit4bbdb018a6cb564783cfb9c65ca82b81c6006bb6 (patch)
tree8840c290fc90202041b8da04eb9dd9f665ecf064 /clang/lib/Sema/SemaExceptionSpec.cpp
parent10d054e95413f0e98e4aeed9dbd4605f6f03b3fa (diff)
downloadllvm-4bbdb018a6cb564783cfb9c65ca82b81c6006bb6.zip
llvm-4bbdb018a6cb564783cfb9c65ca82b81c6006bb6.tar.gz
llvm-4bbdb018a6cb564783cfb9c65ca82b81c6006bb6.tar.bz2
[OpenACC] Implement 'init' and 'shutdown' constructs
These two constructs are very simple and similar, and only support 3 different clauses, two of which are already implemented. This patch adds AST nodes for both constructs, and leaves the device_num clause unimplemented, but enables the other two.
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 505cc5e..ac36663 100644
--- a/clang/lib/Sema/SemaExceptionSpec.cpp
+++ b/clang/lib/Sema/SemaExceptionSpec.cpp
@@ -1399,6 +1399,8 @@ CanThrowResult Sema::canThrow(const Stmt *S) {
case Stmt::OpenACCEnterDataConstructClass:
case Stmt::OpenACCExitDataConstructClass:
case Stmt::OpenACCWaitConstructClass:
+ case Stmt::OpenACCInitConstructClass:
+ case Stmt::OpenACCShutdownConstructClass:
// These expressions can never throw.
return CT_Cannot;