diff options
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/depends.nim | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/compiler/depends.nim b/compiler/depends.nim index 6c7ee8ffc..cb462e188 100644 --- a/compiler/depends.nim +++ b/compiler/depends.nim @@ -106,11 +106,6 @@ proc generateDot*(graph: ModuleGraph; project: AbsoluteFile) = changeFileExt(project, "dot")) proc setupDependPass*(graph: ModuleGraph; module: PSym; idgen: IdGenerator): PPassContext = - var g: PGen - new(g) - g.module = module - g.config = graph.config - g.graph = graph + result = PGen(module: module, config: graph.config, graph: graph) if graph.backend == nil: graph.backend = Backend(dotGraph: "") - result = g |