Skip to content

Commit

Permalink
[Tiny] correct comment opcDeref => opcLdDeref (nim-lang#19908)
Browse files Browse the repository at this point in the history
correct comment opcDeref => opcLdDeref
  • Loading branch information
ringabout authored and capocasa committed Mar 31, 2023
1 parent f66184a commit 125d8dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/vm.nim
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg =
of opcNodeToReg:
let ra = instr.regA
let rb = instr.regB
# opcDeref might already have loaded it into a register. XXX Let's hope
# opcLdDeref might already have loaded it into a register. XXX Let's hope
# this is still correct this way:
if regs[rb].kind != rkNode:
regs[ra] = regs[rb]
Expand Down

0 comments on commit 125d8dd

Please sign in to comment.