fixes #11636
This commit is contained in:
parent
a157c2baef
commit
476b4ff372
1 changed files with 5 additions and 2 deletions
|
|
@ -1650,6 +1650,9 @@ proc makePtrType(baseType: PType): PType =
|
||||||
addSonSkipIntLit(result, baseType)
|
addSonSkipIntLit(result, baseType)
|
||||||
|
|
||||||
proc makeAddr(n: PNode): PNode =
|
proc makeAddr(n: PNode): PNode =
|
||||||
|
if n.kind == nkHiddenAddr:
|
||||||
|
result = n
|
||||||
|
else:
|
||||||
result = newTree(nkHiddenAddr, n)
|
result = newTree(nkHiddenAddr, n)
|
||||||
result.typ = makePtrType(n.typ)
|
result.typ = makePtrType(n.typ)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue