diff options
author | Araq <rumpf_a@web.de> | 2019-12-23 17:27:36 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-12-24 17:33:27 +0100 |
commit | 7bcf7696f0b885b377750f7d88f021db9fe352ca (patch) | |
tree | d00a0c4496aca2d4a42872c579e694a62601442d /compiler/ccgexprs.nim | |
parent | 942db8c5f363dc8d60caa7af93fb30eedf300771 (diff) | |
download | Nim-7bcf7696f0b885b377750f7d88f021db9fe352ca.tar.gz |
fixes a silly regression
Diffstat (limited to 'compiler/ccgexprs.nim')
-rw-r--r-- | compiler/ccgexprs.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index 44a9b794b..9eb42e28c 100644 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -2904,7 +2904,9 @@ proc genBracedInit(p: BProc, n: PNode; isConst: bool): Rope = initLocExpr(p, n[0], d) result = "{(($1) $2),NIM_NIL}" % [getClosureType(p.module, t, clHalfWithEnv), rdLoc(d)] else: - result = ~"NIM_NIL" + var d: TLoc + initLocExpr(p, n, d) + result = rdLoc(d) of tyArray, tyTuple, tyOpenArray, tyVarargs: result = genConstSimpleList(p, n, isConst) of tyObject: |