Skip to content

Commit

Permalink
leaking nodes but it's damn fast
Browse files Browse the repository at this point in the history
  • Loading branch information
saem committed Jan 9, 2022
1 parent e864086 commit d7f4f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/ast.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2137,7 +2137,7 @@ template transitionNodeKindCommon(k, old: TNodeKind) =

for clear in clears.items:
case clear
of nodeClearAst: state.astData.del(n.id)
of nodeClearAst: discard # state.astData.del(n.id)
of nodeClearFlg: state.nodeFlag[n.idx] = {}
of nodeClearInf: state.nodeInf[n.idx] = unknownLineInfo
of nodeClearTyp: state.nodeTyp.del(n.id)
Expand Down

0 comments on commit d7f4f52

Please sign in to comment.