From e20f2111b78b7368ffeaf0cc451351b7962067da Mon Sep 17 00:00:00 2001 From: Jeppe Johansen Date: Thu, 4 Feb 2016 15:53:36 +0000 Subject: [PATCH] Check for nil before doing loopunrolling. git-svn-id: trunk@33047 - --- compiler/nflw.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/nflw.pas b/compiler/nflw.pas index 4287d97369..eb5f67df99 100644 --- a/compiler/nflw.pas +++ b/compiler/nflw.pas @@ -1514,6 +1514,7 @@ implementation { loop unrolling } if (cs_opt_loopunroll in current_settings.optimizerswitches) and + assigned(t2) and { statements must be error free } not(nf_error in t2.flags) then begin