diff options
| author | Deric C. <cheung.deric@gmail.com> | 2025-11-03 13:13:11 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-03 21:13:11 +0000 |
| commit | e5d9644bca214587a22401693eee90b2934d5827 (patch) | |
| tree | 00a5bff794585377e827f4197bd8d95a6352fd6c /lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.h | |
| parent | 9ff31be2f2c181d81bbafa927e6aca117fd68330 (diff) | |
| download | llvm-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 'lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.h')
0 files changed, 0 insertions, 0 deletions
