summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-01-18 03:09:36 +0100
committerAndreas Rumpf <rumpf_a@web.de>2015-01-18 03:09:36 +0100
commit4b30c6d9ced63c2621111f46b7490c94348a2452 (patch)
treeeca78482add21d8f2e92b735c94119c833e6606f /compiler
parent8373357955a3e14b9560d762daf13790122c7696 (diff)
parentca257efc84d6612665123349710f844d1d51be99 (diff)
downloadNim-4b30c6d9ced63c2621111f46b7490c94348a2452.tar.gz
Merge pull request #1972 from skyfex/vm_opcLdConst
Test and fix for VM issue
Diffstat (limited to 'compiler')
-rw-r--r--compiler/vm.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/vm.nim b/compiler/vm.nim
index f69b9281d..ae5fcb43f 100644
--- a/compiler/vm.nim
+++ b/compiler/vm.nim
@@ -984,6 +984,7 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg =
       let rb = instr.regBx - wordExcess
       let cnst = c.constants.sons[rb]
       if fitsRegister(cnst.typ):
+        myreset(regs[ra])
         putIntoReg(regs[ra], cnst)
       else:
         ensureKind(rkNode)