* fixes  #10807
* use nkAddr instead of nkHiddenAddr
This commit is contained in:
cooldome 2019-03-12 12:45:05 +00:00 • committed by Andreas Rumpf
commit 8ceba8a7f3
6 changed files with 34 additions and 9 deletions

View file

@ -1001,3 +1001,11 @@ proc iiTablePut(t: var TIITable, key, val: int) =
swap(t.data, n)
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