summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-06-13 15:50:18 +0200
committerGitHub <noreply@github.com>2018-06-13 15:50:18 +0200
commitcd65ef0056c48ba06922aeec49bb0bd5c9d68fb9 (patch)
tree1e1be339a65e786c38b03ca7b635ea0ec96f6eab
parent518a3e7f737f8b093bee2690503416a1e380b741 (diff)
parentdd06c468656e2c218c373be58702074def9c7ae6 (diff)
downloadNim-cd65ef0056c48ba06922aeec49bb0bd5c9d68fb9.tar.gz
Merge pull request #8027 from yglukhov/vm-fix
Fixed uncaught exception in vm gen
-rw-r--r--compiler/vmgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/vmgen.nim b/compiler/vmgen.nim
index 59fed3cf7..d2243376c 100644
--- a/compiler/vmgen.nim
+++ b/compiler/vmgen.nim
@@ -804,7 +804,7 @@ proc genIntCast(c: PCtx; n: PNode; dest: var TDest) =
   else:
     globalError(c.config, n.info, "VM is only allowed to 'cast' between integers of same size")
 
-proc genVoidABC(c: PCtx, n: PNode, dest: TRegister, opcode: TOpcode) =
+proc genVoidABC(c: PCtx, n: PNode, dest: TDest, opcode: TOpcode) =
   unused(c, n, dest)
   var
     tmp1 = c.genx(n[1])