From 9b378296f65fff962225acc1bef2b3811fffda03 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Wed, 10 Apr 2024 20:41:16 +0800 Subject: fixes addr/hiddenAddr in strictdefs (#23477) --- compiler/astalgo.nim | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'compiler/astalgo.nim') diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim index 851a82e60..7a9892f78 100644 --- a/compiler/astalgo.nim +++ b/compiler/astalgo.nim @@ -707,7 +707,7 @@ proc initTabIter*(ti: var TTabIter, tab: TStrTable): PSym = result = nextIter(ti, tab) iterator items*(tab: TStrTable): PSym = - var it: TTabIter + var it: TTabIter = default(TTabIter) var s = initTabIter(it, tab) while s != nil: yield s @@ -758,14 +758,6 @@ proc iiTablePut(t: var TIITable, key, val: int) = iiTableRawInsert(t.data, key, val) inc(t.counter) -proc isAddrNode*(n: PNode): bool = - case n.kind - of nkAddr, nkHiddenAddr: true - of nkCallKinds: - if n[0].kind == nkSym and n[0].sym.magic == mAddr: true - else: false - else: false - proc listSymbolNames*(symbols: openArray[PSym]): string = result = "" for sym in symbols: -- cgit 1.4.1-2-gfad0