diff options
| author | Mark Searles <m.c.searles@gmail.com> | 2018-07-09 19:28:14 +0000 |
|---|---|---|
| committer | Mark Searles <m.c.searles@gmail.com> | 2018-07-09 19:28:14 +0000 |
| commit | 5bfd8d89911e2ac3de9ee09b0c090dac251e34ef (patch) | |
| tree | 42f2f609d5825e855b4f9ee09c1dc9cf36731cb8 | |
| parent | 40cb6cab563372d0a0b1bc8c127503508dc114e6 (diff) | |
| download | bcm5719-llvm-5bfd8d89911e2ac3de9ee09b0c090dac251e34ef.tar.gz bcm5719-llvm-5bfd8d89911e2ac3de9ee09b0c090dac251e34ef.zip | |
[AMDGPU][Waitcnt] fix "comparison of integers of different signs" build error
Build error on Android; reported by and fix provided by (thanks) by Mauro Rossi <issor.oruam@gmail.com>
Fixes the following building error:
external/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp:1903:61:
error: comparison of integers of different signs:
'typename iterator_traits<__wrap_iter<MachineBasicBlock **> >::difference_type'
(aka 'int') and 'unsigned int' [-Werror,-Wsign-compare]
BlockWaitcntProcessedSet.end(), &MBB) < Count)) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~
1 error generated.
Differential Revision: https://reviews.llvm.org/D49089
llvm-svn: 336588
| -rw-r--r-- | llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp index c404a6d291b..913e22ea381 100644 --- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp +++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp @@ -1904,7 +1904,7 @@ bool SIInsertWaitcnts::runOnMachineFunction(MachineFunction &MF) { // If the loop has multiple back-edges, and so more than one "bottom" // basic block, we have to guarantee a re-walk over every blocks. if ((std::count(BlockWaitcntProcessedSet.begin(), - BlockWaitcntProcessedSet.end(), &MBB) < Count)) { + BlockWaitcntProcessedSet.end(), &MBB) < (int)Count)) { BlockWaitcntBracketsMap[&MBB]->setRevisitLoop(true); LLVM_DEBUG(dbgs() << "set-revisit1: Block" << ContainingLoop->getHeader()->getNumber() << '\n';); |

