Fixes https://github.com/nim-lang/Nim/issues/8484 (#10470) [backport]
This commit is contained in:
parent
db2a4d230d
commit
2b0ed9995d
1 changed files with 2 additions and 1 deletions
|
|
@ -934,7 +934,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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue