Skip to content

Commit 7c2b648

Browse files
[lldb][nfc] Remove redundant check in if statement (llvm#135869)
We already check this boolean in the `if` statement two lines above.
1 parent f4418fb commit 7c2b648

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Target/ThreadPlanStepInRange.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ bool ThreadPlanStepInRange::DefaultShouldStopHereCallback(
460460
if (!should_stop_here)
461461
return false;
462462

463-
if (should_stop_here && current_plan->GetKind() == eKindStepInRange &&
463+
if (current_plan->GetKind() == eKindStepInRange &&
464464
operation == eFrameCompareYounger) {
465465
ThreadPlanStepInRange *step_in_range_plan =
466466
static_cast<ThreadPlanStepInRange *>(current_plan);

0 commit comments

Comments
 (0)