[clang] [Clang] Add __scoped_atomic_uinc_wrap and __scoped_atomic_udec_wrap builtins (PR #168666)

Wenju He via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 25 22:17:46 PST 2025


wenju-he wrote:

> This change is causing an error on the build pipeline
> 
> ```
> 2025-11-26T05:33:28.6987543Z CIR/CodeGen/CIRGenAtomic.cpp:419:11: error: enumeration values 'AO__scoped_atomic_udec_wrap' and 'AO__scoped_atomic_uinc_wrap' not handled in switch [-Werror,-Wswitch]
> 2025-11-26T05:33:28.6989267Z   419 |   switch (expr->getOp()) {
> 2025-11-26T05:33:28.6989676Z       |           ^~~~~~~~~~~~~
> 2025-11-26T05:33:28.6990043Z 1 error generated.
> ```

sorry, I didn't build CIR. I have just posted a fix: https://github.com/llvm/llvm-project/pull/169610, please review

https://github.com/llvm/llvm-project/pull/168666


More information about the cfe-commits mailing list