aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-diff/lib/DiffLog.cpp
diff options
context:
space:
mode:
authorDeric C. <cheung.deric@gmail.com>2025-11-03 13:13:11 -0800
committerGitHub <noreply@github.com>2025-11-03 21:13:11 +0000
commite5d9644bca214587a22401693eee90b2934d5827 (patch)
tree00a5bff794585377e827f4197bd8d95a6352fd6c /llvm/tools/llvm-diff/lib/DiffLog.cpp
parent9ff31be2f2c181d81bbafa927e6aca117fd68330 (diff)
downloadllvm-e5d9644bca214587a22401693eee90b2934d5827.zip
llvm-e5d9644bca214587a22401693eee90b2934d5827.tar.gz
llvm-e5d9644bca214587a22401693eee90b2934d5827.tar.bz2
[NFC] [DirectX] Fix warning about parentheses for assertion in DXContainerGlobals.cpp (#166231)
This PR fixes the appearance of the following warning message when building LLVM with clang (21.1.2) ``` [48/100] Building CXX object lib/Target/DirectX/CMakeFiles/LLVMDirectXCodeGen.dir/DXContainerGlobals.cpp.o In file included from /nix/store/ffrg0560kj0066s4k9pznjand907nlnz-gcc-14.3.0/include/c++/14.3.0/cassert:44, from /workspace/llvm-project/llvm/include/llvm/Support/Endian.h:19, from /workspace/llvm-project/llvm/include/llvm/Support/MD5.h:33, from /workspace/llvm-project/llvm/lib/Target/DirectX/DXContainerGlobals.cpp:28: /workspace/llvm-project/llvm/lib/Target/DirectX/DXContainerGlobals.cpp: In lambda function: /workspace/llvm-project/llvm/lib/Target/DirectX/DXContainerGlobals.cpp:198:78: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 198 | (uint64_t)Binding.LowerBound + Binding.Size - 1 <= UINT32_MAX && | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 199 | "Resource range is too large"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` I marked this PR as an NFC because it only modifies an assertion condition to remove a compiler warning.
Diffstat (limited to 'llvm/tools/llvm-diff/lib/DiffLog.cpp')
0 files changed, 0 insertions, 0 deletions