Skip to content

Commit cd1ad5a

Browse files
authored
[CIR] Add missing switch cases for AO__scoped_atomic_uinc/udec_wrap in emitAtomicOp (#169610)
Fix build error: enumeration values 'AO__scoped_atomic_udec_wrap' and 'AO__scoped_atomic_uinc_wrap' not handled in switch [-Werror,-Wswitch] The two builtins were added in 5d38cdd.
1 parent b20d35c commit cd1ad5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/CIR/CodeGen/CIRGenAtomic.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,9 @@ static void emitAtomicOp(CIRGenFunction &cgf, AtomicExpr *expr, Address dest,
644644
case AtomicExpr::AO__scoped_atomic_nand_fetch:
645645

646646
case AtomicExpr::AO__scoped_atomic_fetch_nand:
647+
648+
case AtomicExpr::AO__scoped_atomic_uinc_wrap:
649+
case AtomicExpr::AO__scoped_atomic_udec_wrap:
647650
cgf.cgm.errorNYI(expr->getSourceRange(), "emitAtomicOp: expr op NYI");
648651
return;
649652
}

0 commit comments

Comments
 (0)