Browse Source

* make_not_regable() now also works on temprefnodes

git-svn-id: trunk@4661 -
Jonas Maebe 19 years ago
parent
commit
e55d6d7145
1 changed files with 5 additions and 0 deletions
  1. 5 0
      compiler/htypechk.pas

+ 5 - 0
compiler/htypechk.pas

@@ -661,6 +661,11 @@ implementation
                   tabstractvarsym(tloadnode(p).symtableentry).varregable:=how
                 else
                   tabstractvarsym(tloadnode(p).symtableentry).varregable:=vr_none;
+            temprefn :
+              if (ttemprefnode(p).tempinfo^.may_be_in_reg) and
+                 ((not records_only) or
+                  (ttemprefnode(p).tempinfo^.restype.def.deftype = recorddef)) then
+                ttemprefnode(p).tempinfo^.may_be_in_reg:=false;
          end;
       end;