Browse Source

* don't copy const parameters passed by reference even if their complexity is >1,
this is handled by wrapcomplexinlinepara

git-svn-id: trunk@22160 -

florian 13 years ago
parent
commit
1cd6f2355b
1 changed files with 1 additions and 2 deletions
  1. 1 2
      compiler/ncal.pas

+ 1 - 2
compiler/ncal.pas

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