summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorcooldome <cdome@bk.ru>2019-05-09 15:45:56 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-05-09 16:45:56 +0200
commitf4c9eb17741190ee73d4f2e9f3df3485581e8371 (patch)
tree6a52c8261892ee3cba3b0db793c2fd6010417805 /compiler
parent532edc3e9a9e5bd4ad8780aad304cef6932213ed (diff)
downloadNim-f4c9eb17741190ee73d4f2e9f3df3485581e8371.tar.gz
fixes #11204 (#11207)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/injectdestructors.nim1
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:
'n147' href='#n147'>147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227