[llvm] [NFC] Fix MSVC C4146 warnings in LLVM headers and tools (PR #225577)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 26 02:50:22 PDT 2026
nikic wrote:
I continue to be opposed to fixing MSVC false positive warnings. Such warnings should be disabled, not mitigated.
This particular warning is not only unnecessary but also actively dangerous, because it encourages adding UB (signed integer negation has UB for signed minimum, while unsigned integer negation is always well-defined).
https://github.com/llvm/llvm-project/pull/225577
More information about the llvm-commits
mailing list