[lldb][NFC] Simplify a return in ThreadPlanStepInRange::DefaultShouldStopHereCallback
authorRaphael Isemann <teemperor@gmail.com>
Tue, 12 Nov 2019 09:58:46 +0000 (10:58 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Tue, 12 Nov 2019 09:58:54 +0000 (10:58 +0100)
We know should_stop_here is false here, so we might as well return false directly.

lldb/source/Target/ThreadPlanStepInRange.cpp

index 71045cc..77772ae 100644 (file)
@@ -392,7 +392,7 @@ bool ThreadPlanStepInRange::DefaultShouldStopHereCallback(
   should_stop_here = ThreadPlanShouldStopHere::DefaultShouldStopHereCallback(
       current_plan, flags, operation, status, baton);
   if (!should_stop_here)
-    return should_stop_here;
+    return false;
 
   if (should_stop_here && current_plan->GetKind() == eKindStepInRange &&
       operation == eFrameCompareYounger) {