From 0a558ceca98c0249c40956deaad5d943707c9d8e Mon Sep 17 00:00:00 2001 From: xflywind <43030857+xflywind@users.noreply.github.com> Date: Mon, 11 Jul 2022 16:13:35 +0800 Subject: [PATCH] remove GC_ref --- compiler/astalgo.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim index f827ebcd75..e1b0088179 100644 --- a/compiler/astalgo.nim +++ b/compiler/astalgo.nim @@ -827,8 +827,7 @@ proc nextIdentIter*(ti: var TIdentIter, tab: TStrTable): PSym = break p = tab.data[h] if p != nil: - result = p - GC_ref(result) + result = p # increase the count else: result = nil ti.h = nextTry(h, high(tab.data))