diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-01-14 12:57:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-14 12:57:20 +0100 |
commit | 9fc04a555ca0fc9eaff6d4eb9ba47a0a64feb9c2 (patch) | |
tree | 9d82bd371b56c0a252bf0f727f775bcc485aa42b /compiler/ccgexprs.nim | |
parent | d56848878cecda9a6fc88edfb8f7ae5da70f47c1 (diff) | |
download | Nim-9fc04a555ca0fc9eaff6d4eb9ba47a0a64feb9c2.tar.gz |
fixes #13105 (#13138)
Diffstat (limited to 'compiler/ccgexprs.nim')
-rw-r--r-- | compiler/ccgexprs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index 13e075bf4..aaf60a6cb 100644 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -336,7 +336,7 @@ proc genAssignment(p: BProc, dest, src: TLoc, flags: TAssignmentFlags) = else: linefmt(p, cpsStmts, "$1 = $2;$n", [rdLoc(dest), rdLoc(src)]) of tyArray: - if containsGarbageCollectedRef(dest.t): + if containsGarbageCollectedRef(dest.t) and p.config.selectedGC notin {gcArc, gcOrc, gcHooks}: genGenericAsgn(p, dest, src, flags) else: linefmt(p, cpsStmts, |