From 3959b2fd24bcbefe32d79f9b0019555d106852aa Mon Sep 17 00:00:00 2001 From: Neelesh Chandola Date: Mon, 28 Jan 2019 14:22:48 +0530 Subject: [PATCH] Fixes https://github.com/nim-lang/Nim/issues/8484 (#10470) [backport] (cherry picked from commit 2b0ed9995d6fd64873ad0b42c2953944b0384908) --- compiler/vm.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/vm.nim b/compiler/vm.nim index 691860a0b5..a902721c9d 100644 --- a/compiler/vm.nim +++ b/compiler/vm.nim @@ -903,7 +903,8 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg = stackTrace(c, tos, pc, errNilAccess) of opcGetImpl: decodeB(rkNode) - let a = regs[rb].node + var a = regs[rb].node + if a.kind == nkVarTy: a = a[0] if a.kind == nkSym: regs[ra].node = if a.sym.ast.isNil: newNode(nkNilLit) else: copyTree(a.sym.ast)