Browse Source

* use NR_LOCAL_STACK_POINTER_REG in ttgwasm.localVarToRef

git-svn-id: branches/wasm@47777 -
nickysn 4 năm trước cách đây
mục cha
commit
fd690e8ba1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      compiler/wasm32/tgcpu.pas

+ 1 - 1
compiler/wasm32/tgcpu.pas

@@ -397,7 +397,7 @@ unit tgcpu;
 
     procedure ttgwasm.localVarToRef(idx: integer; size: integer; out ref: treference);
       begin
-        reference_reset_base(ref, current_procinfo.framepointer,idx,ctempposinvalid,size,[]);
+        reference_reset_base(ref,NR_LOCAL_STACK_POINTER_REG,idx,ctempposinvalid,size,[]);
         ref.islocal := true;
         updateFirstTemp;
       end;