mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 12:39:24 +02:00
* don't copy const parameters passed by reference even if their complexity is >1,
this is handled by wrapcomplexinlinepara git-svn-id: trunk@22160 -
This commit is contained in:
parent
d519365da0
commit
1cd6f2355b
@ -3766,8 +3766,7 @@ implementation
|
||||
{ variable would be passed by value normally, or if }
|
||||
{ there is such a variable somewhere in an expression }
|
||||
((para.parasym.varspez = vs_const) and
|
||||
(not pushconstaddr or
|
||||
(paracomplexity > 1)))) and
|
||||
(not pushconstaddr))) and
|
||||
{ however, if we pass a global variable, an object field or}
|
||||
{ an expression containing a pointer dereference as }
|
||||
{ parameter, this value could be modified in other ways as }
|
||||
|
Loading…
Reference in New Issue
Block a user