Browse Source

* changed of do_optdeadstoreelim must be passed by reference as noted by Alexey Torgashin

florian 2 years ago
parent
commit
e67670fa70
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/optdeadstore.pas

+ 2 - 2
compiler/optdeadstore.pas

@@ -31,7 +31,7 @@ unit optdeadstore;
     uses
     uses
       node;
       node;
 
 
-    function do_optdeadstoreelim(var rootnode : tnode;changed: boolean) : tnode;
+    function do_optdeadstoreelim(var rootnode : tnode;var changed: boolean) : tnode;
 
 
   implementation
   implementation
 
 
@@ -106,7 +106,7 @@ unit optdeadstore;
       end;
       end;
 
 
 
 
-    function do_optdeadstoreelim(var rootnode: tnode;changed: boolean): tnode;
+    function do_optdeadstoreelim(var rootnode: tnode;var changed: boolean): tnode;
       begin
       begin
 {$ifdef EXTDEBUG_DEADSTORE}
 {$ifdef EXTDEBUG_DEADSTORE}
         writeln('******************* Tree before deadstore elimination **********************');
         writeln('******************* Tree before deadstore elimination **********************');