Browse Source

* correct debug info for parentfp hidden parameter,
this is a vs_value parameter, not a vs_var.
This allows to get higher local variables in IDE
to work again (see ide/test.pas)

git-svn-id: trunk@5984 -

pierre 18 years ago
parent
commit
7e62e2cfc1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/pdecsub.pas

+ 2 - 1
compiler/pdecsub.pas

@@ -131,7 +131,8 @@ implementation
             { Generate result variable accessing function result, it
             { Generate result variable accessing function result, it
               can't be put in a register since it must be accessable
               can't be put in a register since it must be accessable
               from the framepointer }
               from the framepointer }
-            vs:=tparavarsym.create('$parentfp',paranr_parentfp,vs_var,voidpointertype,[vo_is_parentfp,vo_is_hidden_para]);
+            vs:=tparavarsym.create('$parentfp',paranr_parentfp,vs_value
+                  ,voidpointertype,[vo_is_parentfp,vo_is_hidden_para]);
             vs.varregable:=vr_none;
             vs.varregable:=vr_none;
             pd.parast.insert(vs);
             pd.parast.insert(vs);