mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-02-01 01:30:47 +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;
|
maxDisp := disp;
|
||||||
lSuppressMacroExpansions := suppressMacroExpansions;
|
lSuppressMacroExpansions := suppressMacroExpansions;
|
||||||
while true do begin
|
while true do begin
|
||||||
if (ip <> nil) and ip^.isForwardDeclared then
|
|
||||||
ResolveForwardReference(ip);
|
|
||||||
if token.kind = rbracech then {fill remainder with zeros}
|
if token.kind = rbracech then {fill remainder with zeros}
|
||||||
goto 2;
|
goto 2;
|
||||||
hasNestedDesignator := false;
|
hasNestedDesignator := false;
|
||||||
@ -2669,6 +2667,8 @@ var
|
|||||||
|
|
||||||
if (ip = nil) or (ip^.itype^.size = 0) then
|
if (ip = nil) or (ip^.itype^.size = 0) then
|
||||||
goto 2;
|
goto 2;
|
||||||
|
if ip^.isForwardDeclared then
|
||||||
|
ResolveForwardReference(ip);
|
||||||
disp := startingDisp + ip^.disp;
|
disp := startingDisp + ip^.disp;
|
||||||
if ip^.bitsize <> 0 then begin {zero out padding bits in bitfields}
|
if ip^.bitsize <> 0 then begin {zero out padding bits in bitfields}
|
||||||
bfp := ip;
|
bfp := ip;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user