tests tcnstseq and tcnstseq3 work again

This commit is contained in:
Araq 2012-03-28 23:03:55 +02:00
commit 97743faa83
3 changed files with 6 additions and 3 deletions

View file

@ -725,7 +725,10 @@ proc genStmts(p: BProc, t: PNode) =
genLineDir(p, t)
initLocExpr(p, t, a)
of nkAsgn: genAsgn(p, t, fastAsgn=false)
of nkFastAsgn: genAsgn(p, t, fastAsgn=true)
of nkFastAsgn:
# transf is overly aggressive with 'nkFastAsgn', so we work around here.
# See tests/run/tcnstseq3 for an example that would fail otherwise.
genAsgn(p, t, fastAsgn=p.prc != nil)
of nkDiscardStmt:
genLineDir(p, t)
initLocExpr(p, t.sons[0], a)