mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-07 13:10:34 +02:00
* automatically call calcparas adter creating a procvardef from a procvdef,
so it doesn't have to be done explicitly anymore afterwards git-svn-id: branches/hlcgllvm@28473 -
This commit is contained in:
parent
b36e244e34
commit
6f01bb56d6
@ -2014,8 +2014,6 @@ implementation
|
||||
(not(m_nested_procvars in current_settings.modeswitches) or
|
||||
not is_nested_pd(tprocvardef(resultdef))) then
|
||||
include(tprocvardef(resultdef).procoptions,po_addressonly);
|
||||
{ calculate parameter list & order }
|
||||
tprocvardef(resultdef).calcparas;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
@ -5249,7 +5249,11 @@ implementation
|
||||
begin
|
||||
result:=inherited getcopyas(newtyp,copytyp);
|
||||
if newtyp=procvardef then
|
||||
exit;
|
||||
begin
|
||||
{ create new paralist }
|
||||
tprocvardef(result).calcparas;
|
||||
exit;
|
||||
end;
|
||||
{ don't copy mangled name, can be different }
|
||||
tprocdef(result).messageinf:=messageinf;
|
||||
tprocdef(result).dispid:=dispid;
|
||||
|
Loading…
Reference in New Issue
Block a user