Browse Source

[PATCH 67/83] restoring the stack value of address load

From 5012bfb6f77fd90d39c1293317253d8267985e9b Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <[email protected]>
Date: Tue, 15 Oct 2019 14:09:58 -0400

git-svn-id: branches/wasm@45944 -
nickysn 5 years ago
parent
commit
d7799f9252
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/wasm/hlcgcpu.pas

+ 1 - 0
compiler/wasm/hlcgcpu.pas

@@ -1142,6 +1142,7 @@ implementation
         // todo: index?
         list.Concat(taicpu.op_none(a_i32_add));
         incstack(list, 1);
+        a_load_stack_reg(list, tosize, r);
       end else
         a_load_ref_reg(list,ptruinttype,ptruinttype,ref,r);
     end;