* a_loadfpu_ref_cgpara: use the paralocation instead of the cgpara size

when loading an fpu register, can be different in case of a record
    that needs to be passed in an fpu register

git-svn-id: trunk@34030 -
This commit is contained in:
Jonas Maebe 2016-06-30 15:33:34 +00:00
parent eeae34ea7d
commit 214aea8853

View File

@ -2551,7 +2551,7 @@ implementation
begin
cgpara.check_simple_location;
paramanager.alloccgpara(list,cgpara);
a_loadfpu_ref_reg(list,fromsize,cgpara.def,ref,cgpara.location^.register);
a_loadfpu_ref_reg(list,fromsize,cgpara.location^.def,ref,cgpara.location^.register);
end;
LOC_REFERENCE,LOC_CREFERENCE:
begin