From 289b31ee752982c2660fc88bb96bbbf2c11836b4 Mon Sep 17 00:00:00 2001 From: cooldome Date: Thu, 26 Mar 2020 19:15:38 +0000 Subject: make nim_temp compile with --gc:arc --sinkInference:off (#13769) * make nim_temp compiler with --gc:arc * trigger build Co-authored-by: cooldome --- compiler/cgen.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/cgen.nim') diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 66677e458..e03ddff09 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -425,7 +425,7 @@ proc resetLoc(p: BProc, loc: var TLoc) = proc constructLoc(p: BProc, loc: var TLoc, isTemp = false) = let typ = loc.t - if optSeqDestructors in p.config.globalOptions and skipTypes(typ, abstractInst).kind in {tyString, tySequence}: + if optSeqDestructors in p.config.globalOptions and skipTypes(typ, abstractInst + {tyStatic}).kind in {tyString, tySequence}: linefmt(p, cpsStmts, "$1.len = 0; $1.p = NIM_NIL;$n", [rdLoc(loc)]) elif not isComplexValueType(typ): linefmt(p, cpsStmts, "$1 = ($2)0;$n", [rdLoc(loc), -- cgit 1.4.1-2-gfad0