diff options
author | Oleksandr T. <oleksandr.tarasiuk@outlook.com> | 2025-03-07 01:05:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-07 01:05:56 +0200 |
commit | 93f0f3d33be596321730e9194cf24a73a75ce702 (patch) | |
tree | 5a6ed7fe807898946627d8313a9a33d56fb342eb /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 29d3fc3f11d272a72ac255af9277c740f26c3dfc (diff) | |
download | llvm-93f0f3d33be596321730e9194cf24a73a75ce702.zip llvm-93f0f3d33be596321730e9194cf24a73a75ce702.tar.gz llvm-93f0f3d33be596321730e9194cf24a73a75ce702.tar.bz2 |
[Clang] add -Wshift-bool warning to handle shifting of bool (#127336)
Fixes #28334
---
This PR introduces the `-Wshift-bool` warning to detect and warn against
shifting `bool` values using the `>>` operator. Shifting a `bool`
implicitly converts it to an `int`, which can lead to unintended
behavior.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions