From 7f31c03718fa69d49e45682994df9bdf885caaf7 Mon Sep 17 00:00:00 2001 From: nickysn Date: Mon, 18 Jan 2021 23:08:25 +0000 Subject: [PATCH] * update the flowcontrol set in the IF node pass_generate_code git-svn-id: branches/wasm@48183 - --- compiler/wasm32/nwasmflw.pas | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/wasm32/nwasmflw.pas b/compiler/wasm32/nwasmflw.pas index 49cacbab0e..9ec2555e42 100644 --- a/compiler/wasm32/nwasmflw.pas +++ b/compiler/wasm32/nwasmflw.pas @@ -160,6 +160,9 @@ begin location_reset(location,LOC_VOID,OS_NO); + oldflowcontrol := flowcontrol; + include(flowcontrol,fc_inflowcontrol); + //todo: MOVE all current_asm_data actions to Wasm HL CodeGen secondpass(left); // condition exprssions @@ -180,6 +183,8 @@ begin current_asmdata.CurrAsmList.concat(taicpu.op_none(a_end_if)); thlcgwasm(hlcg).decblock; + + flowcontrol := oldflowcontrol + (flowcontrol - [fc_inflowcontrol]); end; initialization