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:
overload/toverl4.nim?h=devel&id=e80465dacf50f260abec30ae57d37b298c93fd83'>e80465dac ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77