mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 10:45:08 +02:00
* ignore unused parameters when inlining
git-svn-id: trunk@21445 -
This commit is contained in:
parent
4f273aa08d
commit
af7bb6faab
@ -3703,7 +3703,7 @@ implementation
|
||||
para := tcallparanode(left);
|
||||
while assigned(para) do
|
||||
begin
|
||||
if (para.parasym.typ = paravarsym) then
|
||||
if (para.parasym.typ = paravarsym) and (para.parasym.refs>0) then
|
||||
begin
|
||||
{ must take copy of para.left, because if it contains a }
|
||||
{ temprefn pointing to a copied temp (e.g. methodpointer), }
|
||||
|
Loading…
Reference in New Issue
Block a user