[llvm] [NFC] Fix MSVC C4146 warnings in LLVM CodeGen and tools (PR #225580)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 26 02:47:41 PDT 2026


================
@@ -1277,7 +1277,7 @@ inline SDValue::SDValue(SDNode *node, unsigned resno)
   // combines.
   assert((!Node || !ResNo || ResNo < Node->getNumValues()) &&
          "Invalid result number for the given node!");
-  assert(ResNo < -2U && "Cannot use result numbers reserved for DenseMaps.");
+  assert(ResNo < ~1U && "Cannot use result numbers reserved for DenseMaps.");
----------------
nikic wrote:

This assert can be removed, the values are no longer reserved.

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


More information about the llvm-commits mailing list