Skip to content

Commit c285297

Browse files
authored
[lldb] Fix redundant condition in Target.cpp (llvm#91882)
This commit addresses issue llvm#87244, where a redundant condition was found in the Target.cpp file. Static analyzer cppcheck flagged the issue in the Target.cpp file fix llvm#87244
1 parent 11e5d1c commit c285297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Target/Target.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ static bool CheckIfWatchpointsSupported(Target *target, Status &error) {
841841
if (!num_supported_hardware_watchpoints)
842842
return true;
843843

844-
if (num_supported_hardware_watchpoints == 0) {
844+
if (*num_supported_hardware_watchpoints == 0) {
845845
error.SetErrorStringWithFormat(
846846
"Target supports (%u) hardware watchpoint slots.\n",
847847
*num_supported_hardware_watchpoints);

0 commit comments

Comments
 (0)