summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2024-07-30 03:38:29 +0800
committerGitHub <noreply@github.com>2024-07-29 21:38:29 +0200
commitcb156648d69fd0c21ee5d041a98ddc69294eaa96 (patch)
tree389c3eeac9981b6bd4f1879869751a2167c6518f
parent39629a1adcbcc822508acc3983f444328f90dd85 (diff)
downloadNim-cb156648d69fd0c21ee5d041a98ddc69294eaa96.tar.gz
fixes #13391; VM: Can't get address of object (#23903)
fixes #13391
-rw-r--r--compiler/vm.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/vm.nim b/compiler/vm.nim
index a775cf584..d27f8136e 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: