Browse Source

* free a stack slot after br_if

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

+ 1 - 0
compiler/wasm32/nwasmflw.pas

@@ -73,6 +73,7 @@ begin
     current_asmdata.CurrAsmList.concat(taicpu.op_none(a_i32_eqz));
 
   current_asmdata.CurrAsmList.concat(taicpu.op_const(a_br_if,1) );
+  thlcgwasm(hlcg).decstack(current_asmdata.CurrAsmList,1);
 end;
 
 procedure twasmwhilerepeatnode.pass_generate_code;