2
0
Эх сурвалжийг харах

* 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 жил өмнө
parent
commit
bfe4d44aef

+ 1 - 0
compiler/wasm32/nwasmflw.pas

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