* reset initcode after adding it to the statements list, so further iterations of loop optimization create a new one

git-svn-id: trunk@33245 -
This commit is contained in:
florian 2016-03-13 18:19:55 +00:00
parent b59219b8e0
commit 4731ebeb50

View File

@ -490,6 +490,7 @@ unit optloop;
result:=internalstatements(newcodestatements);
addstatement(newcodestatements,initcode);
initcode:=nil;
addstatement(newcodestatements,node);
addstatement(newcodestatements,deletecode);
end;