diff options
author | Felipe de Azevedo Piovezan <fpiovezan@apple.com> | 2025-04-16 08:10:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-16 08:10:29 -0700 |
commit | f875dd10162dcfb8f4625cef2bfc8e6b9f73f8fc (patch) | |
tree | 0bcaa9735786cc2262e67e1111ffc83281d23543 | |
parent | 2e9ab7cf96d802a906de342f32bc844036152ada (diff) | |
download | llvm-f875dd10162dcfb8f4625cef2bfc8e6b9f73f8fc.zip llvm-f875dd10162dcfb8f4625cef2bfc8e6b9f73f8fc.tar.gz llvm-f875dd10162dcfb8f4625cef2bfc8e6b9f73f8fc.tar.bz2 |
[lldb][nfc] Remove redundant check in if statement (#135869)
We already check this boolean in the `if` statement two lines above.
-rw-r--r-- | lldb/source/Target/ThreadPlanStepInRange.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Target/ThreadPlanStepInRange.cpp b/lldb/source/Target/ThreadPlanStepInRange.cpp index 8a2417e..0e93691 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); |