diff options
author | Araq <rumpf_a@web.de> | 2014-11-18 01:46:52 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-11-18 01:46:52 +0100 |
commit | 17736a1eb45b209c9957214ebb7455ade54fdcc4 (patch) | |
tree | 2e4cb24331ec5442b10c529eb2f80fe3ac43999d /compiler | |
parent | c5cc20d33797f094a742c0a7f39a59e867a380f7 (diff) | |
download | Nim-17736a1eb45b209c9957214ebb7455ade54fdcc4.tar.gz |
fixes #1274
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/ccgexprs.nim | 2 |
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 |