Author: Jonas Devlieghere Date: 2021-02-02T10:23:57-08:00 New Revision: ec6815a72dfcf46fcca546d8c87d05606e140428
URL: https://github.com/llvm/llvm-project/commit/ec6815a72dfcf46fcca546d8c87d05606e140428 DIFF: https://github.com/llvm/llvm-project/commit/ec6815a72dfcf46fcca546d8c87d05606e140428.diff LOG: [debugserver] Fix -Wsign-compare warnings on arm64 Added: Modified: lldb/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp Removed: ################################################################################ diff --git a/lldb/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp b/lldb/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp index 0bac2273419d..183c424fa769 100644 --- a/lldb/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp +++ b/lldb/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp @@ -647,8 +647,8 @@ bool DNBArchMachARM::NotifyException(MachException::Data &exc) { "watchpoint %d was hit on address " "0x%llx", hw_index, (uint64_t)addr); - const int num_watchpoints = NumSupportedHardwareWatchpoints(); - for (int i = 0; i < num_watchpoints; i++) { + const uint32_t num_watchpoints = NumSupportedHardwareWatchpoints(); + for (uint32_t i = 0; i < num_watchpoints; i++) { if (LoHi[i] != 0 && LoHi[i] == hw_index && LoHi[i] != i && GetWatchpointAddressByIndex(i) != INVALID_NUB_ADDRESS) { addr = GetWatchpointAddressByIndex(i); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits