mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-04 18:50:43 +01:00
* handle non-smallset sets in registers in LLVM like arrays and records
git-svn-id: trunk@43884 -
This commit is contained in:
parent
a75247d9b0
commit
9462d6b1ea
@ -695,6 +695,7 @@ implementation
|
||||
pass via a temp in that case
|
||||
}
|
||||
if (fromsize.typ in [arraydef,recorddef]) or
|
||||
(is_set(fromsize) and not is_smallset(fromsize)) or
|
||||
(tosize.size in [3,5,6,7]) then
|
||||
begin
|
||||
{ store struct/array-in-register to memory }
|
||||
@ -901,7 +902,9 @@ implementation
|
||||
else
|
||||
begin
|
||||
if ((fromsize.typ in [arraydef,recorddef]) or
|
||||
(tosize.typ in [arraydef,recorddef])) and
|
||||
(tosize.typ in [arraydef,recorddef]) or
|
||||
(is_set(fromsize) and not is_smallset(fromsize)) or
|
||||
(is_set(tosize) and not is_smallset(tosize))) and
|
||||
(fromsize<>tosize) then
|
||||
begin
|
||||
if handle_agg_load_ref_anyreg(list,fromsize,tosize,sref,register,nil) then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user