Page MenuHomePhabricator

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

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



Build error on Android; reported/fix provided by Mauro Rossi <> (thanks)

Fixes the following building error:

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

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.