Allow removing the initialization statement of a for loop
authorMikko Rasa <tdb@tdb.fi>
Sat, 25 May 2019 21:53:05 +0000 (00:53 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 25 May 2019 21:53:05 +0000 (00:53 +0300)
commit670cd5e97ba225b5eb43fdda4ad53bf2731a35fa
tree0e0abad655f60341eb048d2d571fdbbfd2ada6f9
parent9339ae44a89f295523b6c25681d87642767864c4
Allow removing the initialization statement of a for loop

Previously the compiler would recognize it as unused but couldn't remove
it, leading it to repeat the optimizer endlessly.
source/programcompiler.cpp
source/programcompiler.h