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

Eugene Epshteyn via lldb-commits lldb-commits at lists.llvm.org
Fri May 1 03:55:38 PDT 2026


================
@@ -66,13 +66,13 @@ static void TestVsNative(__uint128_t x, __uint128_t y) {
   TEST(ToNative(n) == y);
   TEST(ToNative(~m) == ~x);
   TEST(ToNative(-m) == -x);
-  TEST(ToNative(!m) == !x);
-  TEST(ToNative(m < n) == (x < y));
-  TEST(ToNative(m <= n) == (x <= y));
-  TEST(ToNative(m == n) == (x == y));
-  TEST(ToNative(m != n) == (x != y));
-  TEST(ToNative(m >= n) == (x >= y));
-  TEST(ToNative(m > n) == (x > y));
+  TEST(ToNative(!m) == static_cast<__uint128_t>(!x));
----------------
eugeneepshteyn wrote:

This seems to be fine, but this makes me question the original purpose of this test code. ;-)   (For the future work.)

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


More information about the lldb-commits mailing list