Fixed uncaught exception in vm gen

This commit is contained in:
Yuriy Glukhov
2018-06-13 15:39:45 +03:00
parent 5348fef003
commit dd06c46865

View File

@@ -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])