summary refs log tree commit diff stats
path: root/compiler/cgen.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <Andreas Rumpf>2016-11-23 14:24:45 +0100
committerAndreas Rumpf <Andreas Rumpf>2016-11-23 14:24:45 +0100
commite7cdb1d694ff4af60fcdb2e81c8a1f444296c5eb (patch)
tree88b044d659fda05120d56bca2b0612e91d8964e5 /compiler/cgen.nim
parent885f250f1bc39afda5854f2c37231b56f83b4d72 (diff)
downloadNim-e7cdb1d694ff4af60fcdb2e81c8a1f444296c5eb.tar.gz
attempt to fix things
Diffstat (limited to 'compiler/cgen.nim')
-rw-r--r--compiler/cgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim
index 526a7b590..db7070941 100644
--- a/compiler/cgen.nim
+++ b/compiler/cgen.nim
@@ -361,7 +361,7 @@ proc localVarDecl(p: BProc; s: PSym): Rope =
   if s.loc.k == locNone:
     fillLoc(s.loc, locLocalVar, s.typ, mangleName(p.module, s), OnStack)
     if s.kind == skLet: incl(s.loc.flags, lfNoDeepCopy)
-  result = getTypeDesc(p.module, s.loc.t)
+  result = getTypeDesc(p.module, s.typ)
   if s.constraint.isNil:
     if sfRegister in s.flags: add(result, " register")
     #elif skipTypes(s.typ, abstractInst).kind in GcTypeKinds: