Skip to content

Commit e1d91ba

Browse files
committed
[lldb] Fix erroneous return value
Found when building with MSVC on Windows, was seeing: ``` [2703/7138] Building CXX object tools\lldb\source\Plugins\Process\Utility\CMakeFiles\lldbPluginProcessUtility.dir\NativeRegisterContextDBReg.cpp.obj C:\git\llvm-project\lldb\source\Plugins\Process\Utility\NativeRegisterContextDBReg.cpp(286): warning C4305: 'return': truncation from 'unsigned int' to 'bool' ```
1 parent 78fbba9 commit e1d91ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/Process/Utility/NativeRegisterContextDBReg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ bool NativeRegisterContextDBReg::ClearHardwareWatchpoint(uint32_t wp_index) {
283283
LLDB_LOG_ERROR(
284284
log, std::move(error),
285285
"unable to set watchpoint: failed to read debug registers: {0}");
286-
return LLDB_INVALID_INDEX32;
286+
return false;
287287
}
288288

289289
if (wp_index >= m_max_hwp_supported)

0 commit comments

Comments
 (0)