* 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 -
This commit is contained in:
Jonas Maebe 2011-08-30 23:34:07 +00:00
parent 0e80844e33
commit f21b34c954

View File

@ -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;