This commit is contained in:
cooldome 2019-05-09 15:45:56 +01:00 • committed by Andreas Rumpf
commit f4c9eb1774
2 changed files with 6 additions and 0 deletions

View file

@ -733,6 +733,7 @@ proc p(n: PNode; c: var Con): PNode =
for j in 0..L-3:
let v = it[j]
if v.kind == nkSym:
if sfCompileTime in v.sym.flags: continue
# move the variable declaration to the top of the frame:
c.addTopVar v
# make sure it's destroyed at the end of the proc: