summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorYuriy Glukhov <yuriy.glukhov@gmail.com>2018-06-13 15:39:45 +0300
committerYuriy Glukhov <yuriy.glukhov@gmail.com>2018-06-13 15:39:45 +0300
commitdd06c468656e2c218c373be58702074def9c7ae6 (patch)
treea7d20ef56d061ba4cbafd03b16aff4e008eadc4c /compiler
parent5348fef00326aabbb596b2ee7d0925fe10bbf7c6 (diff)
downloadNim-dd06c468656e2c218c373be58702074def9c7ae6.tar.gz
Fixed uncaught exception in vm gen
Diffstat (limited to 'compiler')
-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])