parent
5ee9e86c87
commit
4164ec4f8b
2 changed files with 19 additions and 2 deletions
|
|
@ -243,7 +243,10 @@ proc genSingleVar(p: BProc, a: PNode) =
|
|||
if params != nil: params.add(~", ")
|
||||
assert(sonsLen(typ) == sonsLen(typ.n))
|
||||
add(params, genOtherArg(p, value, i, typ))
|
||||
lineF(p, cpsStmts, "$#($#);$n", [decl, params])
|
||||
if params == nil:
|
||||
lineF(p, cpsStmts, "$#;$n", [decl])
|
||||
else:
|
||||
lineF(p, cpsStmts, "$#($#);$n", [decl, params])
|
||||
else:
|
||||
initLocExprSingleUse(p, value, tmp)
|
||||
lineF(p, cpsStmts, "$# = $#;$n", [decl, tmp.rdLoc])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue