Small fix and cosmetics

This commit is contained in:
Yuriy Glukhov 2018-05-08 09:39:58 +03:00
commit 0b5883c21e
2 changed files with 2 additions and 8 deletions

View file

@ -881,9 +881,8 @@ proc liftForLoop*(body: PNode; owner: PSym): PNode =
cl = createClosure()
while true:
let i = foo(cl)
if cl.state < 0:
if (nkBreakState(cl.state)):
break
# nkBreakState(cl.state)
...
"""
if liftingHarmful(owner): return body