Browse Source

* use correct location.size after dereferencing pointers to non-implicit
pointer types instead of hardcoded OS_ADDR

git-svn-id: branches/jvmbackend@18817 -

Jonas Maebe 14 năm trước cách đây
mục cha
commit
d063ae10cb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      compiler/jvm/njvmmem.pas

+ 1 - 1
compiler/jvm/njvmmem.pas

@@ -89,7 +89,7 @@ implementation
             { these are always arrays (used internally for pointers to var
               parameters stored in nestedfpstructs) }
             hlcg.location_force_reg(current_asmdata.CurrAsmList,left.location,left.resultdef,left.resultdef,true);
-            location_reset_ref(location,LOC_REFERENCE,OS_ADDR,4);
+            location_reset_ref(location,LOC_REFERENCE,def_cgsize(resultdef),4);
             reference_reset_base(location.reference,left.location.register,0,4);
             location.reference.arrayreftype:=art_indexconst;
           end