From 7110d1e48e8fe40a95738cb993cb06fdf535afaa Mon Sep 17 00:00:00 2001 From: Nikolay Nikolov Date: Tue, 5 Oct 2021 05:29:10 +0300 Subject: [PATCH] * use 'br_if' instead of 'if br end_if' sequence in the code, generated by thlcgwasm.g_checkexceptions --- compiler/wasm32/hlcgcpu.pas | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/compiler/wasm32/hlcgcpu.pas b/compiler/wasm32/hlcgcpu.pas index 76756bf97e..cc917e3bea 100644 --- a/compiler/wasm32/hlcgcpu.pas +++ b/compiler/wasm32/hlcgcpu.pas @@ -2277,15 +2277,9 @@ implementation pd:=search_system_proc('fpc_raised_exception_flag'); g_call_system_proc(list,pd,[],nil).resetiftemp; - list.concat(taicpu.op_none(A_IF)); - incblock; - decstack(current_asmdata.CurrAsmList,1); - list.concat(taicpu.op_const(a_br,br_blocks-raiseBr)); - - list.concat(taicpu.op_none(A_END_IF)); - decblock; + list.concat(taicpu.op_const(a_br_if,br_blocks-raiseBr)); end; procedure thlcgwasm.a_load_stack_reg(list: TAsmList; size: tdef; reg: tregister);