Browse Source

* upper bound of for-loop cannot be a regvar, because the regvar may
be modified inside the loop (mantis #8883)

git-svn-id: trunk@7352 -

Jonas Maebe 18 years ago
parent
commit
2c5a284060
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/ncgflw.pas

+ 1 - 1
compiler/ncgflw.pas

@@ -447,7 +447,7 @@ implementation
          if t1.nodetype<>ordconstn then
            begin
               do_loopvar_at_end:=false;
-              location_force_reg(current_asmdata.CurrAsmList,t1.location,t1.location.size,true);
+              location_force_reg(current_asmdata.CurrAsmList,t1.location,t1.location.size,false);
               temptovalue:=true;
            end
          else