aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorLuke Drummond <luke.drummond@codeplay.com>2023-05-30 10:37:47 +0100
committerLuke Drummond <luke.drummond@codeplay.com>2023-05-30 22:22:43 +0100
commite3fbede7f3fd7693d5a15a8cfa0b62d9a4f84877 (patch)
tree4887e43347c65e067693ba99a63283db07f50866 /clang/lib/Sema/SemaChecking.cpp
parenta79b0f9f1d8275b023bcd2bf1763b148d088ad97 (diff)
downloadllvm-e3fbede7f3fd7693d5a15a8cfa0b62d9a4f84877.zip
llvm-e3fbede7f3fd7693d5a15a8cfa0b62d9a4f84877.tar.gz
llvm-e3fbede7f3fd7693d5a15a8cfa0b62d9a4f84877.tar.bz2
[HIP] Add missing __hip_atomic_fetch_sub support
The rest of the fetch/op intrinsics were added in e13246a2ec3 but sub was conspicuous by its absence. Reviewed By: yaxunl Differential Revision: https://reviews.llvm.org/D151701
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index d94e1d0b..c8ebd51 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -6438,6 +6438,7 @@ ExprResult Sema::BuildAtomicExpr(SourceRange CallRange, SourceRange ExprRange,
Form = Copy;
break;
case AtomicExpr::AO__hip_atomic_fetch_add:
+ case AtomicExpr::AO__hip_atomic_fetch_sub:
case AtomicExpr::AO__hip_atomic_fetch_min:
case AtomicExpr::AO__hip_atomic_fetch_max:
case AtomicExpr::AO__c11_atomic_fetch_add: