diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-12-09 13:40:08 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-12-09 13:40:08 +0100 |
commit | 14f2578604d0bf32a41ed7a26357ae82fb885d7a (patch) | |
tree | fc061290aa46a19ef7513201ce201bacbc3f92b4 | |
parent | f70d967d2c313fc92ca864cbe856c55c40947aae (diff) | |
download | Nim-14f2578604d0bf32a41ed7a26357ae82fb885d7a.tar.gz |
fixes crash related to runnableExamples in Nim doc that yet uses the VM
-rw-r--r-- | compiler/vmgen.nim | 2 |
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) |