mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-01-01 13:29:32 +00:00
Move ResolveForwardReference call to apply to the field being initialized.
This commit is contained in:
parent
20770f388e
commit
36c70f9107
@ -2608,8 +2608,6 @@ var
|
||||
maxDisp := disp;
|
||||
lSuppressMacroExpansions := suppressMacroExpansions;
|
||||
while true do begin
|
||||
if (ip <> nil) and ip^.isForwardDeclared then
|
||||
ResolveForwardReference(ip);
|
||||
if token.kind = rbracech then {fill remainder with zeros}
|
||||
goto 2;
|
||||
hasNestedDesignator := false;
|
||||
@ -2669,6 +2667,8 @@ var
|
||||
|
||||
if (ip = nil) or (ip^.itype^.size = 0) then
|
||||
goto 2;
|
||||
if ip^.isForwardDeclared then
|
||||
ResolveForwardReference(ip);
|
||||
disp := startingDisp + ip^.disp;
|
||||
if ip^.bitsize <> 0 then begin {zero out padding bits in bitfields}
|
||||
bfp := ip;
|
||||
|
Loading…
Reference in New Issue
Block a user