[clang] [Clang] Add __builtin_bswapg (PR #162433)

Nikolas Klauser via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 4 09:16:25 PST 2025


================
@@ -12951,6 +12951,9 @@ def err_builtin_invalid_arg_type: Error<
   "%plural{0:|: }3"
   "%plural{[0,3]:type|:types}1 (was %4)">;
 
+def err_bswapg_bitint_not_16bit_aligned : Error<
----------------
philnik777 wrote:

You want to use the `g` version, but that still behaves the same: https://godbolt.org/z/eaMjfW57K - so yeah, I think we should stay consistent here and swap the underlying type.

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


More information about the cfe-commits mailing list