mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 17:47:56 +02:00
- removed extraneous maybe_begin_aggregate() when a procvar is initialised
with a pointerconstn, and moved the maybe_end_aggregate() for all procvar initialisation cases to a common location git-svn-id: trunk@30849 -
This commit is contained in:
parent
1e7fcec236
commit
d71f6e9840
@ -1386,17 +1386,16 @@ function get_next_varsym(def: tabstractrecorddef; const SymList:TFPHashObjectLis
|
||||
Message(parser_e_no_procvarnested_const);
|
||||
ftcb.emit_tai(Tai_const.Create_sym(nil),voidpointertype);
|
||||
end;
|
||||
ftcb.maybe_end_aggregate(def);
|
||||
end
|
||||
else if n.nodetype=pointerconstn then
|
||||
begin
|
||||
ftcb.maybe_begin_aggregate(def);
|
||||
ftcb.emit_tai_procvar2procdef(Tai_const.Create_pint(tpointerconstnode(n).value),def);
|
||||
if not def.is_addressonly then
|
||||
ftcb.emit_tai(Tai_const.Create_sym(nil),voidpointertype);
|
||||
end
|
||||
else
|
||||
Message(parser_e_illegal_expression);
|
||||
ftcb.maybe_end_aggregate(def);
|
||||
n.free;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user