summary refs log tree commit diff stats
path: root/compiler/cgen.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-09-07 08:29:37 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-09-07 08:29:45 +0200
commit08a6f3fc67f1bac78c47a241c94f936d7fbd5108 (patch)
tree563899d839308047d371199814b4dac0e568e487 /compiler/cgen.nim
parent87eb3a105d4a2b6f9e9fd18bc6cca18d458d1cca (diff)
downloadNim-08a6f3fc67f1bac78c47a241c94f936d7fbd5108.tar.gz
fixes #4721
Diffstat (limited to 'compiler/cgen.nim')
-rw-r--r--compiler/cgen.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim
index 7333c77c3..48b6e9633 100644
--- a/compiler/cgen.nim
+++ b/compiler/cgen.nim
@@ -323,8 +323,9 @@ proc initLocalVar(p: BProc, v: PSym, immediateAsgn: bool) =
 proc getTemp(p: BProc, t: PType, result: var TLoc; needsInit=false) =
   inc(p.labels)
   result.r = "LOC" & rope(p.labels)
-  addf(p.blocks[0].sections[cpsLocals],
-     "$1 $2;$n", [getTypeDesc(p.module, t), result.r])
+  #addf(p.blocks[0].sections[cpsLocals],
+  #   "$1 $2;$n", [getTypeDesc(p.module, t), result.r])
+  linefmt(p, cpsLocals, "$1 $2;$n", getTypeDesc(p.module, t), result.r)
   result.k = locTemp
   #result.a = - 1
   result.t = t