[libunwind] Delete unused handlerNotFound in unwind_phase1
GitOrigin-RevId: 3324fd8a7b1ab011513017ed8fd81e06928526d5
diff --git a/src/UnwindLevel1.c b/src/UnwindLevel1.c
index 3e75b5f..68e5e48 100644
--- a/src/UnwindLevel1.c
+++ b/src/UnwindLevel1.c
@@ -39,8 +39,7 @@
__unw_init_local(cursor, uc);
// Walk each frame looking for a place to stop.
- bool handlerNotFound = true;
- while (handlerNotFound) {
+ while (true) {
// Ask libunwind to get next frame (skip over first which is
// _Unwind_RaiseException).
int stepResult = __unw_step(cursor);
@@ -102,7 +101,6 @@
case _URC_HANDLER_FOUND:
// found a catch clause or locals that need destructing in this frame
// stop search and remember stack pointer at the frame
- handlerNotFound = false;
__unw_get_reg(cursor, UNW_REG_SP, &sp);
exception_object->private_2 = (uintptr_t)sp;
_LIBUNWIND_TRACE_UNWINDING(