Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout committed Oct 22, 2024
1 parent 934943d commit d487578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/liftdestructors.nim
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ proc defaultOp(c: var TLiftCtx; t: PType; body, x, y: PNode) =
body.add genBuiltin(c, mWasMoved, "`=wasMoved`", x)

proc genAddr(c: var TLiftCtx; x: PNode): PNode =
if x.kind == nkHiddenDeref:
if x.kind in {nkHiddenDeref, nkDerefExpr}:
checkSonsLen(x, 1, c.g.config)
result = x[0]
else:
Expand Down

0 comments on commit d487578

Please sign in to comment.