3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-15 03:35:40 +00:00

patch: fix signorm commit broken by twine rename

This commit is contained in:
Emil J. Tywoniak 2026-06-24 12:25:20 +02:00
parent a84a2d9d56
commit f5b21ecc68

View file

@ -113,12 +113,12 @@ std::vector<Cell*> Patch::commit_staged() {
staged_prefix_cache_.clear();
std::vector<Cell*> committed;
committed.reserve(cells_.size());
for (auto& wire : wires_)
commit_wire(std::move(wire));
for (auto& cell : cells_) {
cell->fixup_parameters();
committed.push_back(commit_cell(std::move(cell)));
}
for (auto& wire : wires_)
commit_wire(std::move(wire));
cells_.clear();
wires_.clear();
return committed;
@ -269,6 +269,8 @@ void Patch::patch_ports(Cell* root_cell,
void Patch::commit_inheriting_src(Cell* src_source) {
twine_staging.commit_into(mod->design->twines);
staged_prefix_cache_.clear();
for (auto& wire : wires_)
commit_wire(std::move(wire));
for (auto& cell : cells_) {
cell->fixup_parameters();
Cell *committed = commit_cell(std::move(cell));
@ -277,8 +279,6 @@ void Patch::commit_inheriting_src(Cell* src_source) {
if (src_source)
committed->adopt_src_from(src_source);
}
for (auto& wire : wires_)
commit_wire(std::move(wire));
cells_.clear();
wires_.clear();
}