don't require an implementation for procs marked with .error; activate the move optimizer for destructors
This commit is contained in:
parent
2dfd09b1be
commit
40e01d8549
5 changed files with 65 additions and 19 deletions
|
|
@ -442,4 +442,5 @@ proc dataflowAnalysis*(s: PSym; body: PNode; conf: ConfigRef) =
|
|||
proc constructCfg*(s: PSym; body: PNode): ControlFlowGraph =
|
||||
## constructs a control flow graph for ``body``.
|
||||
var c = Con(code: @[], blocks: @[])
|
||||
gen(c, body)
|
||||
shallowCopy(result, c.code)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue