Browse Source

* adjust stack correctly in a_op_stack

git-svn-id: branches/wasm@48256 -
nickysn 4 years ago
parent
commit
fdf1f7d966
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/wasm32/hlcgcpu.pas

+ 2 - 0
compiler/wasm32/hlcgcpu.pas

@@ -511,6 +511,7 @@ implementation
                 if TOpCG2IAsmOp[op]=A_None then
                 if TOpCG2IAsmOp[op]=A_None then
                   internalerror(2010120532);
                   internalerror(2010120532);
                 list.concat(taicpu.op_none(TOpCG2IAsmOp[op]));
                 list.concat(taicpu.op_none(TOpCG2IAsmOp[op]));
+                decstack(list,1);
               end;
               end;
             maybe_adjust_op_result(list,op,size);
             maybe_adjust_op_result(list,op,size);
           end;
           end;
@@ -540,6 +541,7 @@ implementation
                 if TOpCG2LAsmOp[op]=A_None then
                 if TOpCG2LAsmOp[op]=A_None then
                   internalerror(2010120533);
                   internalerror(2010120533);
                 list.concat(taicpu.op_none(TOpCG2LAsmOp[op]));
                 list.concat(taicpu.op_none(TOpCG2LAsmOp[op]));
+                decstack(list,1);
               end;
               end;
           end;
           end;
         else
         else