[clang] [CIR] Add missing switch cases for AO__scoped_atomic_uinc/udec_wrap in emitAtomicOp (PR #169610)
Wenju He via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 25 22:17:01 PST 2025
https://github.com/wenju-he created https://github.com/llvm/llvm-project/pull/169610
None
>From 8f364e6a6a2c5ca763ce8cc84a8527b8941ef69c Mon Sep 17 00:00:00 2001
From: Wenju He <wenju.he at intel.com>
Date: Wed, 26 Nov 2025 07:13:09 +0100
Subject: [PATCH] [CIR] Add missing switch cases for
AO__scoped_atomic_uinc/udec_wrap in emitAtomicOp
---
clang/lib/CIR/CodeGen/CIRGenAtomic.cpp | 3 +++
1 file changed, 3 insertions(+)
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;
}
More information about the cfe-commits
mailing list