* 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:
florian 2012-08-21 16:31:58 +00:00
parent d519365da0
commit 1cd6f2355b

View File

@ -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 }