diff options
author | Araq <rumpf_a@web.de> | 2018-09-29 16:54:50 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-09-29 16:54:59 +0200 |
commit | 40e01d8549ce3c278dbe791d7af4f1e73b4d56da (patch) | |
tree | f0b2c4b7beae7270f752bf1f35dd9059ac668494 /compiler/dfa.nim | |
parent | 2dfd09b1bef5c7d7dcba02b8c80856bce7aa685e (diff) | |
download | Nim-40e01d8549ce3c278dbe791d7af4f1e73b4d56da.tar.gz |
don't require an implementation for procs marked with .error; activate the move optimizer for destructors
Diffstat (limited to 'compiler/dfa.nim')
-rw-r--r-- | compiler/dfa.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/dfa.nim b/compiler/dfa.nim index 013242f62..44c89b881 100644 --- a/compiler/dfa.nim +++ b/compiler/dfa.nim @@ -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) |