summary refs log tree commit diff stats
path: root/compiler/cgen.nim
diff options
context:
space:
mode:
authorcooldome <cdome@bk.ru>2020-03-26 19:15:38 +0000
committerGitHub <noreply@github.com>2020-03-26 20:15:38 +0100
commit289b31ee752982c2660fc88bb96bbbf2c11836b4 (patch)
tree28be87d0792304047e056e69a10baff470fb8d16 /compiler/cgen.nim
parent2925a47ae6aaa8e93117a29b018582540bf55856 (diff)
downloadNim-289b31ee752982c2660fc88bb96bbbf2c11836b4.tar.gz
make nim_temp compile with --gc:arc --sinkInference:off (#13769)
* make nim_temp compiler with --gc:arc

* trigger build

Co-authored-by: cooldome <ariabushenko@bk.ru>
Diffstat (limited to 'compiler/cgen.nim')
-rw-r--r--compiler/cgen.nim2
1 files changed, 1 insertions, 1 deletions
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),