[llvm-branch-commits] [libunwind] 3324fd8 - [libunwind] Delete unused handlerNotFound in unwind_phase1
Fangrui Song via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Nov 21 12:42:49 PST 2020
Author: Fangrui Song
Date: 2020-11-21T12:38:00-08:00
New Revision: 3324fd8a7b1ab011513017ed8fd81e06928526d5
URL: https://github.com/llvm/llvm-project/commit/3324fd8a7b1ab011513017ed8fd81e06928526d5
DIFF: https://github.com/llvm/llvm-project/commit/3324fd8a7b1ab011513017ed8fd81e06928526d5.diff
LOG: [libunwind] Delete unused handlerNotFound in unwind_phase1
Added:
Modified:
libunwind/src/UnwindLevel1.c
Removed:
################################################################################
diff --git a/libunwind/src/UnwindLevel1.c b/libunwind/src/UnwindLevel1.c
index 3e75b5f13cd6..68e5e48b8c05 100644
--- a/libunwind/src/UnwindLevel1.c
+++ b/libunwind/src/UnwindLevel1.c
@@ -39,8 +39,7 @@ unwind_phase1(unw_context_t *uc, unw_cursor_t *cursor, _Unwind_Exception *except
__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 @@ unwind_phase1(unw_context_t *uc, unw_cursor_t *cursor, _Unwind_Exception *except
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(
More information about the llvm-branch-commits
mailing list