fixes #4721
This commit is contained in:
parent
87eb3a105d
commit
08a6f3fc67
4 changed files with 33 additions and 8 deletions
|
|
@ -323,8 +323,9 @@ proc initLocalVar(p: BProc, v: PSym, immediateAsgn: bool) =
|
|||
proc getTemp(p: BProc, t: PType, result: var TLoc; needsInit=false) =
|
||||
inc(p.labels)
|
||||
result.r = "LOC" & rope(p.labels)
|
||||
addf(p.blocks[0].sections[cpsLocals],
|
||||
"$1 $2;$n", [getTypeDesc(p.module, t), result.r])
|
||||
#addf(p.blocks[0].sections[cpsLocals],
|
||||
# "$1 $2;$n", [getTypeDesc(p.module, t), result.r])
|
||||
linefmt(p, cpsLocals, "$1 $2;$n", getTypeDesc(p.module, t), result.r)
|
||||
result.k = locTemp
|
||||
#result.a = - 1
|
||||
result.t = t
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue