diff options
author | cooldome <cdome@bk.ru> | 2019-05-09 15:45:56 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-05-09 16:45:56 +0200 |
commit | f4c9eb17741190ee73d4f2e9f3df3485581e8371 (patch) | |
tree | 6a52c8261892ee3cba3b0db793c2fd6010417805 /compiler | |
parent | 532edc3e9a9e5bd4ad8780aad304cef6932213ed (diff) | |
download | Nim-f4c9eb17741190ee73d4f2e9f3df3485581e8371.tar.gz |
fixes #11204 (#11207)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/injectdestructors.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/injectdestructors.nim b/compiler/injectdestructors.nim index 0111bd4af..db2d9a4f2 100644 --- a/compiler/injectdestructors.nim +++ b/compiler/injectdestructors.nim @@ -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: |