summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-11-18 01:46:52 +0100
committerAraq <rumpf_a@web.de>2014-11-18 01:46:52 +0100
commit17736a1eb45b209c9957214ebb7455ade54fdcc4 (patch)
tree2e4cb24331ec5442b10c529eb2f80fe3ac43999d /compiler
parentc5cc20d33797f094a742c0a7f39a59e867a380f7 (diff)
downloadNim-17736a1eb45b209c9957214ebb7455ade54fdcc4.tar.gz
fixes #1274
Diffstat (limited to 'compiler')
-rw-r--r--compiler/ccgexprs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim
index 7d704c15b..bced6d50f 100644
--- a/compiler/ccgexprs.nim
+++ b/compiler/ccgexprs.nim
@@ -1125,7 +1125,7 @@ proc genObjConstr(p: BProc, e: PNode, d: var TLoc) =
       ty = getUniqueType(ty.sons[0])
     if field == nil or field.loc.r == nil: internalError(e.info, "genObjConstr")
     if it.len == 3 and optFieldCheck in p.options:
-      genFieldCheck(p, it.sons[2], r, field)
+      genFieldCheck(p, it.sons[2], tmp2.r, field)
     app(tmp2.r, ".")
     app(tmp2.r, field.loc.r)
     tmp2.k = locTemp