diff options
| author | Anutosh Bhat <andersonbhat491@gmail.com> | 2024-12-06 18:41:39 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-06 08:11:39 -0500 |
| commit | 89e919fb0df391da42dbfd48cd8de268335fe672 (patch) | |
| tree | dd871b2a4356ec15ade57c48f88b767a00c9155b /lldb/test/Shell/ScriptInterpreter/Python | |
| parent | 452efb35df641bac80a901c867ddfdd4de6ad2f4 (diff) | |
| download | llvm-89e919fb0df391da42dbfd48cd8de268335fe672.zip llvm-89e919fb0df391da42dbfd48cd8de268335fe672.tar.gz llvm-89e919fb0df391da42dbfd48cd8de268335fe672.tar.bz2 | |
Fix warnings while compiling SLPVectorizer.cpp (#118051)
Towards #118048
I was building llvm (clang and lld) for webassembly and came across
these warnings. Not sure if they are seen in our builds too.
```
/Users/anutosh491/work/llvm-project/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:6924:67: warning: comparison of integers of different signs: 'typename iterator_traits<user_iterator_impl<User>>::difference_type' (aka 'long') and 'unsigned int' [-Wsign-compare]
6924 | if (std::distance(LI->user_begin(), LI->user_end()) !=
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
6925 | LI->getNumUses())
| ~~~~~~~~~~~~~~~~
[ 79%] Building CXX object lib/Transforms/Instrumentation/CMakeFiles/LLVMInstrumentation.dir/PGOInstrumentation.cpp.o
/Users/anutosh491/work/llvm-project/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:9754:43: warning: comparison of integers of different signs: 'typename iterator_traits<Value *const *>::difference_type' (aka 'long') and 'unsigned int' [-Wsign-compare]
9754 | count(Slice, Slice.front()) ==
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
9755 | (isa<UndefValue>(Slice.front()) ? VF - 1 : 1)) {
```
This PR tries to address those warnings.
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions
