Merge remote-tracking branch 'origin/devel' into compiler-cleanup

This commit is contained in:
Jacek Sieka 2016-08-17 18:49:36 +08:00
commit 4d558e2608
11 changed files with 45 additions and 21 deletions

View file

@ -1944,7 +1944,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