This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][Waitcnt] fix "comparison of integers of different signs" build error
ClosedPublic

Authored by msearles on Jul 9 2018, 10:17 AM.

Details

Summary

Build error on Android; reported/fix provided by Mauro Rossi <issor.oruam@gmail.com> (thanks)

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.

Diff Detail

Repository
rL LLVM

Event Timeline

msearles created this revision.Jul 9 2018, 10:17 AM
This revision is now accepted and ready to land.Jul 9 2018, 10:37 AM
This revision was automatically updated to reflect the committed changes.