diff options
author | Zahary Karadjov <zahary@gmail.com> | 2013-05-25 19:38:41 +0300 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2013-05-26 11:14:23 +0300 |
commit | 420789c2782be7b969ad02448841d90bd0d17a1f (patch) | |
tree | 32e7a792489a2af529b8cc475291b7424dad80fc /compiler/cgen.nim | |
parent | 7fccdedcb5d1e583039b2ea2ae6564412a0f5104 (diff) | |
download | Nim-420789c2782be7b969ad02448841d90bd0d17a1f.tar.gz |
bugfix: emulated thread vars used in combination with the mark & sweep GC
resulted in invalid code generation
Diffstat (limited to 'compiler/cgen.nim')
-rw-r--r-- | compiler/cgen.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 92216d278..f552b95ea 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -284,6 +284,9 @@ proc genLineDir(p: BProc, t: PNode) = linefmt(p, cpsStmts, "nimln($1, $2);$n", line.toRope, t.info.quotedFilename) +proc accessThreadLocalVar(p: BProc, s: PSym) +proc emulatedThreadVars(): bool {.inline.} + include "ccgtypes.nim" # ------------------------------ Manager of temporaries ------------------ |