Parcourir la source

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

florian il y a 2 ans
Parent
commit
e67670fa70
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      compiler/optdeadstore.pas

+ 2 - 2
compiler/optdeadstore.pas

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