[clang] [CIR] Add missing switch cases for AO__scoped_atomic_uinc/udec_wrap in emitAtomicOp (PR #169610)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 25 22:17:33 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Wenju He (wenju-he)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/169610.diff
1 Files Affected:
- (modified) clang/lib/CIR/CodeGen/CIRGenAtomic.cpp (+3)
``````````diff
diff --git a/clang/lib/CIR/CodeGen/CIRGenAtomic.cpp b/clang/lib/CIR/CodeGen/CIRGenAtomic.cpp
index 48c082d89de18..4c94db5ddd457 100644
--- a/clang/lib/CIR/CodeGen/CIRGenAtomic.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenAtomic.cpp
@@ -644,6 +644,9 @@ static void emitAtomicOp(CIRGenFunction &cgf, AtomicExpr *expr, Address dest,
case AtomicExpr::AO__scoped_atomic_nand_fetch:
case AtomicExpr::AO__scoped_atomic_fetch_nand:
+
+ case AtomicExpr::AO__scoped_atomic_uinc_wrap:
+ case AtomicExpr::AO__scoped_atomic_udec_wrap:
cgf.cgm.errorNYI(expr->getSourceRange(), "emitAtomicOp: expr op NYI");
return;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/169610
More information about the cfe-commits
mailing list