From a80140032be992d170925f274fad215de97d9a50 Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Fri, 24 May 2019 17:38:02 +0200 Subject: [PATCH] move return into the right place --- src/comp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/comp.c b/src/comp.c index 3f0db646660..4b01a057054 100644 --- a/src/comp.c +++ b/src/comp.c @@ -763,6 +763,10 @@ compile_f (const char *f_name, ptrdiff_t bytestr_length, break; case Breturn: + POP1; + gcc_jit_block_end_with_return(comp.block, + NULL, + args[0]); break; case Bdiscard: @@ -930,10 +934,6 @@ compile_f (const char *f_name, ptrdiff_t bytestr_length, } } - stack--; - gcc_jit_block_end_with_return(comp.block, - NULL, - *stack); comp_res.gcc_res = gcc_jit_context_compile(comp.ctxt); goto exit; -- 2.39.5