2
0
Эх сурвалжийг харах

* also resize the value on the stack in a_load_reg_ref() when
required based on the source/destination sizes (like in
a_load_reg_reg(), a_load_ref_reg() and a_load_ref_ref())

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

Jonas Maebe 14 жил өмнө
parent
commit
f21b34c954

+ 2 - 0
compiler/jvm/hlcgcpu.pas

@@ -1024,6 +1024,8 @@ implementation
     begin
       extra_slots:=prepare_stack_for_ref(list,ref,false);
       a_load_reg_stack(list,fromsize,register);
+      if def2regtyp(fromsize)=R_INTREGISTER then
+        resize_stack_int_val(list,def_cgsize(fromsize),def_cgsize(tosize),ref.arrayreftype<>art_none);
       a_load_stack_ref(list,tosize,ref,extra_slots);
     end;