Skip to content

Commit d487578

Browse files
committed
checkpoint
1 parent 934943d commit d487578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/liftdestructors.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ proc defaultOp(c: var TLiftCtx; t: PType; body, x, y: PNode) =
9494
body.add genBuiltin(c, mWasMoved, "`=wasMoved`", x)
9595

9696
proc genAddr(c: var TLiftCtx; x: PNode): PNode =
97-
if x.kind == nkHiddenDeref:
97+
if x.kind in {nkHiddenDeref, nkDerefExpr}:
9898
checkSonsLen(x, 1, c.g.config)
9999
result = x[0]
100100
else:

0 commit comments

Comments
 (0)