Skip to content

Commit

Permalink
work around refc properly
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Oct 2, 2024
1 parent 467e6f5 commit d6d031f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/layeredtable.nim
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ proc setToPreviousLayer*(pt: var LayeredIdTable) {.inline.} =
when defined(gcDestructors):
pt = pt.nextLayer[]
else:
pt = shallowCopy(pt.nextLayer[])
# workaround refc
let tmp = pt.nextLayer[]
pt = tmp

proc lookup(typeMap: ref LayeredIdTableObj, key: ItemId): PType =
result = nil
Expand Down

0 comments on commit d6d031f

Please sign in to comment.