From cb156648d69fd0c21ee5d041a98ddc69294eaa96 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Tue, 30 Jul 2024 03:38:29 +0800 Subject: [PATCH] fixes #13391; VM: Can't get address of object (#23903) fixes #13391 --- compiler/vm.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/vm.nim b/compiler/vm.nim index a775cf584d..d27f8136e0 100644 --- a/compiler/vm.nim +++ b/compiler/vm.nim @@ -639,6 +639,8 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg = regs[ra].intVal = cast[int](regs[rb].node.intVal) of rkNodeAddr: regs[ra].intVal = cast[int](regs[rb].nodeAddr) + of rkRegisterAddr: + regs[ra].intVal = cast[int](regs[rb].regAddr) of rkInt: regs[ra].intVal = regs[rb].intVal else: