Explorar el Código

* copy all wasm parameters to the local stack, so that their address can be taken

git-svn-id: branches/wasm@47947 -
nickysn hace 5 años
padre
commit
c24446c037
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      compiler/wasm32/cpupara.pas

+ 3 - 2
compiler/wasm32/cpupara.pas

@@ -200,8 +200,9 @@ implementation
 
     function tcpuparamanager.param_use_paraloc(const cgpara: tcgpara): boolean;
       begin
-        { all parameters are copied by the VM to local variable locations }
-        result:=true;
+        { all parameters are copied to the linear stack, so that their address
+          can be taken }
+        result:=false;
       end;
 
     function tcpuparamanager.ret_in_param(def:tdef;pd:tabstractprocdef):boolean;