diff options
Diffstat (limited to 'passes/cmds/scatter.cc')
-rw-r--r-- | passes/cmds/scatter.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/passes/cmds/scatter.cc b/passes/cmds/scatter.cc index 35ce0a110..0b95fe024 100644 --- a/passes/cmds/scatter.cc +++ b/passes/cmds/scatter.cc @@ -51,10 +51,7 @@ struct ScatterPass : public Pass { for (auto &c : mod_it.second->cells) for (auto &p : c.second->connections_) { - RTLIL::Wire *wire = new RTLIL::Wire; - wire->name = NEW_ID; - wire->width = p.second.size(); - mod_it.second->add(wire); + RTLIL::Wire *wire = mod_it.second->addWire(NEW_ID, p.second.size()); if (ct.cell_output(c.second->type, p.first)) { RTLIL::SigSig sigsig(p.second, wire); |