[Lldb-commits] [lldb] f875dd1 - [lldb][nfc] Remove redundant check in if statement (#135869)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 16 08:10:32 PDT 2025
Author: Felipe de Azevedo Piovezan
Date: 2025-04-16T08:10:29-07:00
New Revision: f875dd10162dcfb8f4625cef2bfc8e6b9f73f8fc
URL: https://github.com/llvm/llvm-project/commit/f875dd10162dcfb8f4625cef2bfc8e6b9f73f8fc
DIFF: https://github.com/llvm/llvm-project/commit/f875dd10162dcfb8f4625cef2bfc8e6b9f73f8fc.diff
LOG: [lldb][nfc] Remove redundant check in if statement (#135869)
We already check this boolean in the `if` statement two lines above.
Added:
Modified:
lldb/source/Target/ThreadPlanStepInRange.cpp
Removed:
################################################################################
diff --git a/lldb/source/Target/ThreadPlanStepInRange.cpp b/lldb/source/Target/ThreadPlanStepInRange.cpp
index 8a2417e9da326..0e93691de68af 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<ThreadPlanStepInRange *>(current_plan);
More information about the lldb-commits
mailing list