summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-12-09 13:40:08 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-12-09 13:40:08 +0100
commit14f2578604d0bf32a41ed7a26357ae82fb885d7a (patch)
treefc061290aa46a19ef7513201ce201bacbc3f92b4
parentf70d967d2c313fc92ca864cbe856c55c40947aae (diff)
downloadNim-14f2578604d0bf32a41ed7a26357ae82fb885d7a.tar.gz
fixes crash related to runnableExamples in Nim doc that yet uses the VM
-rw-r--r--compiler/vmgen.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/vmgen.nim b/compiler/vmgen.nim
index 8f0c72e45..252b7c788 100644
--- a/compiler/vmgen.nim
+++ b/compiler/vmgen.nim
@@ -1130,6 +1130,8 @@ proc genMagic(c: PCtx; n: PNode; dest: var TDest; m: TMagic) =
       # produces a value
     else:
       globalError(n.info, "expandToAst requires a call expression")
+  of mRunnableExamples:
+    discard "just ignore any call to runnableExamples"
   else:
     # mGCref, mGCunref,
     globalError(n.info, "cannot generate code for: " & $m)