summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-08-25 16:37:17 +0200
committerGitHub <noreply@github.com>2016-08-25 16:37:17 +0200
commitd4dc091143c776a20f40961f49b9d2c1231f04f4 (patch)
tree8e606826e813ed68e4f624328540b0993319618e
parentfeec7f9334dbec31eeb6e14ffb1eb663dd722c91 (diff)
parent21120a3e6cb8f9af0437e97d146b831b7e1a964f (diff)
downloadNim-d4dc091143c776a20f40961f49b9d2c1231f04f4.tar.gz
Merge pull request #4611 from jangko/vs2010_error_c2275
fixed #4459 -- VS2010 error C2275
-rw-r--r--compiler/ccgstmts.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgstmts.nim b/compiler/ccgstmts.nim
index a5ce147c3..9056a61cb 100644
--- a/compiler/ccgstmts.nim
+++ b/compiler/ccgstmts.nim
@@ -21,7 +21,7 @@ proc registerGcRoot(p: BProc, v: PSym) =
     # we register a specialized marked proc here; this has the advantage
     # that it works out of the box for thread local storage then :-)
     let prc = genTraverseProcForGlobal(p.module, v)
-    appcg(p.module, p.module.initProc.procSec(cpsStmts),
+    appcg(p.module, p.module.initProc.procSec(cpsInit),
       "#nimRegisterGlobalMarker($1);$n", [prc])
 
 proc isAssignedImmediately(n: PNode): bool {.inline.} =