Browse Source

* call decstack after if in twasmifnode.pass_generate_code to keep track of the stack balance correctly

git-svn-id: branches/wasm@48043 -
nickysn 4 years ago
parent
commit
bfe4d44aef
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/wasm32/nwasmflw.pas

+ 1 - 0
compiler/wasm32/nwasmflw.pas

@@ -162,6 +162,7 @@ begin
 
 
   current_asmdata.CurrAsmList.concat(taicpu.op_none(a_if));
   current_asmdata.CurrAsmList.concat(taicpu.op_none(a_if));
   thlcgwasm(hlcg).incblock;
   thlcgwasm(hlcg).incblock;
+  thlcgwasm(hlcg).decstack(current_asmdata.CurrAsmList,1);
 
 
   secondpass(right); // then branchs
   secondpass(right); // then branchs