Skip to content

Commit f875dd1

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Target/ThreadPlanStepInRange.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ bool ThreadPlanStepInRange::DefaultShouldStopHereCallback(
370370
if (!should_stop_here)
371371
return false;
372372

373-
if (should_stop_here && current_plan->GetKind() == eKindStepInRange &&
373+
if (current_plan->GetKind() == eKindStepInRange &&
374374
operation == eFrameCompareYounger) {
375375
ThreadPlanStepInRange *step_in_range_plan =
376376
static_cast<ThreadPlanStepInRange *>(current_plan);

0 commit comments

Comments
 (0)