mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 20:29:17 +02:00
LLVM: fix variant records when alignment of first part is not the highest
Resolves #40015
This commit is contained in:
parent
f1abd2c2f0
commit
c5f4a6acd0
@ -2288,7 +2288,8 @@ implementation
|
|||||||
if (varcount>=variantstarts.count) then
|
if (varcount>=variantstarts.count) then
|
||||||
internalerror(2008051005);
|
internalerror(2008051005);
|
||||||
{ new variant part -> use the one with the biggest alignment }
|
{ new variant part -> use the one with the biggest alignment }
|
||||||
i:=tempsymlist.indexof(tobject(variantstarts[varcount]));
|
fieldvs:=tfieldvarsym(variantstarts[varcount]);
|
||||||
|
i:=tempsymlist.indexof(fieldvs);
|
||||||
lastvaroffsetprocessed:=fieldvs.fieldoffset;
|
lastvaroffsetprocessed:=fieldvs.fieldoffset;
|
||||||
inc(varcount);
|
inc(varcount);
|
||||||
if (i<0) then
|
if (i<0) then
|
||||||
|
Loading…
Reference in New Issue
Block a user