[Mlir-commits] [clang] [flang] [lldb] [llvm] [mlir] [NFC] Silence -Wbool-integral-comparison warnings across LLVM (PR #195246)

Eugene Epshteyn llvmlistbot at llvm.org
Fri May 1 03:37:31 PDT 2026


================
@@ -37,7 +37,7 @@ inline uint24_t getSwappedBytes(uint24_t C) {
 
 class DataExtractor {
   StringRef Data;
-  uint8_t IsLittleEndian;
+  bool IsLittleEndian;
----------------
eugeneepshteyn wrote:

I'm not a maintainer of this code, but this looks dangerous. Presumably, the goal was to have a known storage size of 1 byte, and `bool` doesn't guarantee that.

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


More information about the Mlir-commits mailing list