summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorandri lim <jangko128@gmail.com>2016-08-13 20:26:25 +0700
committerandri lim <jangko128@gmail.com>2016-08-13 20:26:25 +0700
commit21120a3e6cb8f9af0437e97d146b831b7e1a964f (patch)
tree98dadc54198ce5f5e99db55c45567b08039d751b /compiler
parentb0d9c11e5395b4cb3c1f1294b6dfbaf3f5c1f678 (diff)
downloadNim-21120a3e6cb8f9af0437e97d146b831b7e1a964f.tar.gz
fixed #4459 -- VS2010 error C2275
Diffstat (limited to 'compiler')
-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.} =