summary refs log tree commit diff stats
path: root/compiler/ccgstmts.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-05-16 00:28:00 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-05-16 00:28:00 +0200
commitd8bce8b83da39a72403e2893bed85cd71fa25d23 (patch)
tree66f7e8b124a45408ee596c8386ed4b05a04f6366 /compiler/ccgstmts.nim
parent74aab132bd90ad0848b64117e67c873c5da37f05 (diff)
downloadNim-d8bce8b83da39a72403e2893bed85cd71fa25d23.tar.gz
GC with primitive MS
Diffstat (limited to 'compiler/ccgstmts.nim')
-rw-r--r--compiler/ccgstmts.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgstmts.nim b/compiler/ccgstmts.nim
index 988c923c8..61412ad67 100644
--- a/compiler/ccgstmts.nim
+++ b/compiler/ccgstmts.nim
@@ -16,7 +16,7 @@ const
     # above X strings a hash-switch for strings is generated
 
 proc registerGcRoot(p: BProc, v: PSym) =
-  if gSelectedGC in {gcMarkAndSweep, gcGenerational, gcV2} and
+  if gSelectedGC in {gcMarkAndSweep, gcGenerational, gcV2, gcRefc} and
       containsGarbageCollectedRef(v.loc.t):
     # we register a specialized marked proc here; this has the advantage
     # that it works out of the box for thread local storage then :-)