mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-03 18:38:56 +02:00
* fixed field alignment when reusing an anonymous recorddef for LLVM and
the LLVM layout of an instance does not match the original one (e.g. because it contains procdefs of procedures with different signatures) git-svn-id: trunk@42477 -
This commit is contained in:
parent
217ae6e4bb
commit
e7fbebfef5
@ -388,9 +388,12 @@ implementation
|
||||
newdef:=crecorddef.create_global_internal('',1,1);
|
||||
recorddef,
|
||||
objectdef:
|
||||
newdef:=crecorddef.create_global_internal('',
|
||||
tabstractrecordsymtable(tabstractrecorddef(info.def).symtable).recordalignment,
|
||||
tabstractrecordsymtable(tabstractrecorddef(info.def).symtable).recordalignmin);
|
||||
begin
|
||||
newdef:=crecorddef.create_global_internal('',
|
||||
tabstractrecordsymtable(tabstractrecorddef(info.def).symtable).usefieldalignment,
|
||||
tabstractrecordsymtable(tabstractrecorddef(info.def).symtable).recordalignmin);
|
||||
tabstractrecordsymtable(newdef.symtable).recordalignment:=tabstractrecordsymtable(tabstractrecorddef(info.def).symtable).recordalignment;
|
||||
end
|
||||
else
|
||||
internalerror(2015122401);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user