Explorar o código

* fixed the type specified to reference_reset_base() in
thlcgobj.paravarsym_set_initialloc_to_paraloc(): it has to be the type of
pointer in the base register, not the type of the variable (and since this
is a parameter on the stack, use voidstackpointertype rather than
getpointerdef() for i8086 compatibility)

git-svn-id: branches/hlcgllvm@28351 -

Jonas Maebe %!s(int64=11) %!d(string=hai) anos
pai
achega
8e3062b1b6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/hlcgobj.pas

+ 1 - 1
compiler/hlcgobj.pas

@@ -4305,7 +4305,7 @@ implementation
 
   procedure thlcgobj.paravarsym_set_initialloc_to_paraloc(vs: tparavarsym);
     begin
-      reference_reset_base(vs.initialloc.reference,vs.vardef,tparavarsym(vs).paraloc[calleeside].location^.reference.index,
+      reference_reset_base(vs.initialloc.reference,voidstackpointertype,tparavarsym(vs).paraloc[calleeside].location^.reference.index,
           tparavarsym(vs).paraloc[calleeside].location^.reference.offset,tparavarsym(vs).paraloc[calleeside].alignment);
     end;