Browse Source

Check for nil before doing loopunrolling.

git-svn-id: trunk@33047 -
Jeppe Johansen 9 years ago
parent
commit
e20f2111b7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/nflw.pas

+ 1 - 0
compiler/nflw.pas

@@ -1514,6 +1514,7 @@ implementation
 
 
          { loop unrolling }
          { loop unrolling }
          if (cs_opt_loopunroll in current_settings.optimizerswitches) and
          if (cs_opt_loopunroll in current_settings.optimizerswitches) and
+           assigned(t2) and
            { statements must be error free }
            { statements must be error free }
            not(nf_error in t2.flags) then
            not(nf_error in t2.flags) then
            begin
            begin