diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-01-18 03:09:36 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-01-18 03:09:36 +0100 |
commit | 4b30c6d9ced63c2621111f46b7490c94348a2452 (patch) | |
tree | eca78482add21d8f2e92b735c94119c833e6606f /compiler | |
parent | 8373357955a3e14b9560d762daf13790122c7696 (diff) | |
parent | ca257efc84d6612665123349710f844d1d51be99 (diff) | |
download | Nim-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.nim | 1 |
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) |