From 9911d375b3877b8feb92cee680be34f73451d145 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 18 Oct 2017 17:05:33 +0200 Subject: make destructors more robust against unchecked arrays --- compiler/semasgn.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/semasgn.nim b/compiler/semasgn.nim index cb4728097..835da55ac 100644 --- a/compiler/semasgn.nim +++ b/compiler/semasgn.nim @@ -203,7 +203,7 @@ proc liftBodyAux(c: var TLiftCtx; t: PType; body, x, y: PNode) = tyPtr, tyString, tyRef, tyOpt: defaultOp(c, t, body, x, y) of tyArray, tySequence: - if tfHasAsgn in t.flags: + if {tfHasAsgn, tfUncheckedArray} * t.flags == {tfHasAsgn}: if t.kind == tySequence: # XXX add 'nil' handling here body.add newSeqCall(c.c, x, y) -- cgit 1.4.1-2-gfad0