summary refs log tree commit diff stats
path: root/compiler/vmgen.nim
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2019-09-18 20:02:30 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-09-18 20:02:30 +0200
commit188ce5f3ee5c83d749918f9f286537d65a513c53 (patch)
treed3a12f3b637c43aedcfec76a4acb736ac874ff23 /compiler/vmgen.nim
parentf8000d4ba14414657b2255fda3ca058074166b76 (diff)
downloadNim-188ce5f3ee5c83d749918f9f286537d65a513c53.tar.gz
add nodeId proc to macros (#11456)
* add nodeId proc to macros

* add doc comment.

* fix typo
Diffstat (limited to 'compiler/vmgen.nim')
-rw-r--r--compiler/vmgen.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/vmgen.nim b/compiler/vmgen.nim
index 0b41fed28..898916c64 100644
--- a/compiler/vmgen.nim
+++ b/compiler/vmgen.nim
@@ -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)