mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 04:29:29 +02:00
* wrong alignment was used in r38252: alignment for a class returns the alignment of the implict pointer, but we really need the alignment of the data structure
git-svn-id: trunk@38261 -
This commit is contained in:
parent
fb2a664640
commit
2e9f6f9dfb
@ -356,9 +356,9 @@ implementation
|
||||
(target_info.system in systems_garbage_collected_managed_types) then
|
||||
begin
|
||||
{ take care of the alignment of the fields }
|
||||
if not(left.resultdef is tabstractrecorddef) then
|
||||
if not(left.resultdef is tobjectdef) then
|
||||
Internalerror(2018021601);
|
||||
location_reset_ref(location,LOC_REFERENCE,def_cgsize(resultdef),newalignment(tabstractrecorddef(left.resultdef).alignment,vs.fieldoffset),[]);
|
||||
location_reset_ref(location,LOC_REFERENCE,def_cgsize(resultdef),newalignment(tObjectSymtable(tobjectdef(left.resultdef).symtable).recordalignment,vs.fieldoffset),[]);
|
||||
case left.location.loc of
|
||||
LOC_CREGISTER,
|
||||
LOC_REGISTER:
|
||||
|
Loading…
Reference in New Issue
Block a user