[Tiny] correct comment opcDeref => opcLdDeref (#19908)

correct comment opcDeref => opcLdDeref
This commit is contained in:
flywind 2022-06-21 15:37:23 +08:00 • committed by GitHub
commit a65db5e2e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -642,7 +642,7 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg =
of opcNodeToReg: of opcNodeToReg:
let ra = instr.regA let ra = instr.regA
let rb = instr.regB 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: # this is still correct this way:
if regs[rb].kind != rkNode: if regs[rb].kind != rkNode:
regs[ra] = regs[rb] regs[ra] = regs[rb]