diff --git a/compiler/destroyer.nim b/compiler/destroyer.nim index ffa3e37e55..cd16469de3 100644 --- a/compiler/destroyer.nim +++ b/compiler/destroyer.nim @@ -430,6 +430,7 @@ proc injectDestructorCalls*(owner: PSym; n: PNode): PNode = c.tmp.typ = c.tmpObj c.destroys = newNodeI(nkStmtList, n.info) c.topLevelVars = newNodeI(nkVarSection, n.info) + c.toDropBit = initTable[int, PSym]() let cfg = constructCfg(owner, n) shallowCopy(c.g, cfg) c.jumpTargets = initIntSet()