Skip to content

Commit

Permalink
use nfIsRef
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Jun 8, 2021
1 parent 36cde6d commit 5e43e07
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/vm.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1174,11 +1174,11 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg =
let enablePrivate = regs[rc].intVal.bool
let node = newNode(nkBracket)
for ai in allSyms(c.graph, sym, importHidden = enablePrivate):
let ai2 = newNode(nkSym)
ai2.sym = ai # TODO: copyTree?
node.sons.add ai2
let ni = newSymNode(ai)
ni.flags.incl nfIsRef
node.sons.add ni
node.flags.incl nfIsRef
regs[ra].node = node
# TODO: do we need regs[ra].node.flags.incl nfIsRef or recSetFlagIsRef?
of opcEcho:
let rb = instr.regB
template fn(s) = msgWriteln(c.config, s, {msgStdout, msgNoUnitSep})
Expand Down

0 comments on commit 5e43e07

Please sign in to comment.