diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2024-04-10 20:41:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-10 14:41:16 +0200 |
commit | 9b378296f65fff962225acc1bef2b3811fffda03 (patch) | |
tree | 882e043308e3a81d125666a6cff4f4bede5e0c2f /compiler/astalgo.nim | |
parent | 72d0ba2df534109064badde1a1b26ae53f22d44d (diff) | |
download | Nim-9b378296f65fff962225acc1bef2b3811fffda03.tar.gz |
fixes addr/hiddenAddr in strictdefs (#23477)
Diffstat (limited to 'compiler/astalgo.nim')
-rw-r--r-- | compiler/astalgo.nim | 10 |
1 files changed, 1 insertions, 9 deletions
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: |