ARC: solves phase ordering problems (#12654)
This commit is contained in:
parent
f22d3c75aa
commit
a14abc5708
9 changed files with 65 additions and 62 deletions
|
|
@ -2243,8 +2243,7 @@ proc genProc(c: PCtx; s: PSym): int =
|
|||
s.ast.sons[miscPos] = x
|
||||
# thanks to the jmp we can add top level statements easily and also nest
|
||||
# procs easily:
|
||||
let body = transformBody(c.graph, s, cache = not isCompileTimeProc(s),
|
||||
noDestructors = true)
|
||||
let body = transformBody(c.graph, s, cache = not isCompileTimeProc(s))
|
||||
let procStart = c.xjmp(body, opcJmp, 0)
|
||||
var p = PProc(blocks: @[], sym: s)
|
||||
let oldPrc = c.prc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue