Skip to content

Commit 7c424b7

Browse files
committed
WIP
1 parent 17111fc commit 7c424b7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/heap.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,9 @@ static cell *deep_clone2_to_tmp(query *q, cell *p1, pl_idx p1_ctx, unsigned dept
251251
if (is_var(c)) {
252252
const frame *f = GET_FRAME(c_ctx);
253253
slot *e = GET_SLOT(f, c->var_nbr);
254+
e->vgen = e->vgen2;
254255
p1 = deref(q, c, c_ctx);
255256
p1_ctx = q->latest_ctx;
256-
257-
if (!is_var(p1))
258-
e->vgen = e->vgen2;
259257
}
260258
}
261259
#endif

0 commit comments

Comments
 (0)