aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorNick Desaulniers <nick.desaulniers@gmail.com>2025-02-12 08:59:02 -0800
committerGitHub <noreply@github.com>2025-02-12 08:59:02 -0800
commita3e2075e5008cefc2e896f1558b46f0882321ff5 (patch)
tree61ec99516f0c53226934e54b7290468dcfd32d06 /llvm/lib/Transforms/Utils/Local.cpp
parente9e717f4053ee293d42ecaefaa04e473b0e1b469 (diff)
downloadllvm-a3e2075e5008cefc2e896f1558b46f0882321ff5.zip
llvm-a3e2075e5008cefc2e896f1558b46f0882321ff5.tar.gz
llvm-a3e2075e5008cefc2e896f1558b46f0882321ff5.tar.bz2
[libc][bit_test] fix -Wimplicit-int-conversion (#126317)
Fixes: llvm-project/libc/src/__support/CPP/bit.h:235:28: error: implicit conversion loses integer precision: 'int' to 'cpp::enable_if_t<cpp::is_unsigned_v<unsigned short>, unsigned short>' (aka 'unsigned short') [-Werror,-Wimplicit-int-conversion] 235 | return (value << rotate) | (value >> (N - rotate)); | ~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ llvm-project/libc/src/__support/CPP/bit.h:247:28: error: implicit conversion loses integer precision: 'int' to 'cpp::enable_if_t<cpp::is_unsigned_v<unsigned short>, unsigned short>' (aka 'unsigned short') [-Werror,-Wimplicit-int-conversion] 247 | return (value >> rotate) | (value << (N - rotate)); | ~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ llvm-project/libc/test/src/__support/CPP/bit_test.cpp:45:36: error: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Werror,-Wimplicit-int-conversion] 45 | EXPECT_FALSE(has_single_bit<T>(two_bits_value)); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~ Via the libc-cpp-utils-tests ninja target.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions