diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-08-09 17:49:59 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-08-09 17:49:59 +0200 |
commit | 5d05ee21c217e3585bf2eec9158e7aff8236894b (patch) | |
tree | da39cbed758ce461bdee71ac081b2efa6f22f734 /compiler | |
parent | 1a470d181854b078cf16e6cb6f7802fea8814680 (diff) | |
download | Nim-5d05ee21c217e3585bf2eec9158e7aff8236894b.tar.gz |
makes tests green again
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/ccgexprs.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index 7a60e1ef7..f9fa1a0f6 100644 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -1982,7 +1982,8 @@ proc exprComplexConst(p: BProc, n: PNode, d: var TLoc) = putDataIntoDest(p, d, t, tmp) # This fixes bug #4551, but we really need better dataflow # analysis to make this 100% safe. - d.s = OnStatic + if t.kind notin {tySequence, tyString}: + d.s = OnStatic proc expr(p: BProc, n: PNode, d: var TLoc) = case n.kind |