Skip to content

Commit

Permalink
make nim_temp compile with --gc:arc --sinkInference:off (#13769)
Browse files Browse the repository at this point in the history
* make nim_temp compiler with --gc:arc

* trigger build

Co-authored-by: cooldome <ariabushenko@bk.ru>
  • Loading branch information
cooldome and cooldome authored Mar 26, 2020
1 parent 2925a47 commit 289b31e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/cgen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 289b31e

Please sign in to comment.