From f21b34c954212cd02edbfc0ec14ed5fee9d1374e Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Tue, 30 Aug 2011 23:34:07 +0000 Subject: [PATCH] * 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 - --- compiler/jvm/hlcgcpu.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/jvm/hlcgcpu.pas b/compiler/jvm/hlcgcpu.pas index cc90924efb..d6d7ea306a 100644 --- a/compiler/jvm/hlcgcpu.pas +++ b/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;