don't require an implementation for procs marked with .error; activate the move optimizer for destructors

This commit is contained in:
Araq 2018-09-29 16:54:50 +02:00
commit 40e01d8549
5 changed files with 65 additions and 19 deletions

View file

@ -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)