Skip to content

Conversation

@felipepiovezan
Copy link
Contributor

We already check this boolean in the if statement two lines above.

We already check this boolean in the `if` statement two lines above.
@llvmbot
Copy link
Member

llvmbot commented Apr 15, 2025

@llvm/pr-subscribers-lldb

Author: Felipe de Azevedo Piovezan (felipepiovezan)

Changes

We already check this boolean in the if statement two lines above.


Full diff: https://github.com/llvm/llvm-project/pull/135869.diff

1 Files Affected:

  • (modified) lldb/source/Target/ThreadPlanStepInRange.cpp (+1-1)
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);

Copy link
Collaborator

@jimingham jimingham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@felipepiovezan felipepiovezan merged commit f875dd1 into llvm:main Apr 16, 2025
12 checks passed
felipepiovezan added a commit to felipepiovezan/llvm-project that referenced this pull request Apr 17, 2025
We already check this boolean in the `if` statement two lines above.
felipepiovezan added a commit to felipepiovezan/llvm-project that referenced this pull request Apr 17, 2025
We already check this boolean in the `if` statement two lines above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants