Parcourir la source

* ignore unused parameters when inlining

git-svn-id: trunk@21445 -
florian il y a 13 ans
Parent
commit
af7bb6faab
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      compiler/ncal.pas

+ 1 - 1
compiler/ncal.pas

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