From f875dd10162dcfb8f4625cef2bfc8e6b9f73f8fc Mon Sep 17 00:00:00 2001 From: Felipe de Azevedo Piovezan Date: Wed, 16 Apr 2025 08:10:29 -0700 Subject: [PATCH] [lldb][nfc] Remove redundant check in if statement (#135869) We already check this boolean in the `if` statement two lines above. --- lldb/source/Target/ThreadPlanStepInRange.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Target/ThreadPlanStepInRange.cpp b/lldb/source/Target/ThreadPlanStepInRange.cpp index 8a2417e9da32..0e93691de68a 100644 --- a/lldb/source/Target/ThreadPlanStepInRange.cpp +++ b/lldb/source/Target/ThreadPlanStepInRange.cpp @@ -370,7 +370,7 @@ bool ThreadPlanStepInRange::DefaultShouldStopHereCallback( if (!should_stop_here) return false; - if (should_stop_here && current_plan->GetKind() == eKindStepInRange && + if (current_plan->GetKind() == eKindStepInRange && operation == eFrameCompareYounger) { ThreadPlanStepInRange *step_in_range_plan = static_cast(current_plan);