Browse Source

* make temps which are passed as the location for the function
result of functions which return their result in a temp not
regable

git-svn-id: trunk@4662 -

Jonas Maebe 19 years ago
parent
commit
e9580628d3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/nld.pas

+ 1 - 0
compiler/nld.pas

@@ -766,6 +766,7 @@ implementation
              is_ansistring(right.resulttype.def) or
              is_ansistring(right.resulttype.def) or
              is_widestring(right.resulttype.def))  then
              is_widestring(right.resulttype.def))  then
            begin
            begin
+             make_not_regable(left,vr_addr);
              tcallnode(right).funcretnode := left;
              tcallnode(right).funcretnode := left;
              result := right;
              result := right;
              left := nil;
              left := nil;