add nodeId proc to macros (#11456)

* add nodeId proc to macros

* add doc comment.

* fix typo
This commit is contained in:
Arne Döring 2019-09-18 20:02:30 +02:00 • committed by Andreas Rumpf
commit 188ce5f3ee
6 changed files with 18 additions and 2 deletions

View file

@ -1324,6 +1324,8 @@ proc genMagic(c: PCtx; n: PNode; dest: var TDest; m: TMagic) =
c.gABx(n, opcNodeToReg, a, a)
c.genAsgnPatch(arg, a)
c.freeTemp(a)
of mNodeId:
c.genUnaryABC(n, dest, opcNodeId)
else:
# mGCref, mGCunref,
globalError(c.config, n.info, "cannot generate code for: " & $m)