From 4f04923e3ddd0038cf1a4afd5bade6502bd107e8 Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Tue, 2 Mar 2021 08:56:02 +0000 Subject: [PATCH] touched up do_return() --- moo/lib/exec.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/moo/lib/exec.c b/moo/lib/exec.c index 1c53939..7bec52b 100644 --- a/moo/lib/exec.c +++ b/moo/lib/exec.c @@ -5215,10 +5215,6 @@ static MOO_INLINE int do_return (moo_t* moo, moo_oob_t bcode, moo_oop_t return_v */ moo->ip--; #else - int unwind_protect; - moo_oop_context_t unwind_start; - moo_oop_context_t unwind_stop; - if (MOO_UNLIKELY(moo->active_context->origin == moo->processor->active->initial_context->origin)) { /* method return from a processified block @@ -5257,8 +5253,11 @@ static MOO_INLINE int do_return (moo_t* moo, moo_oob_t bcode, moo_oop_t return_v } else { - unwind_protect = 0; + int unwind_protect; + moo_oop_context_t unwind_start; + moo_oop_context_t unwind_stop; + unwind_protect = 0; if (moo->active_context->origin == moo->active_context) {