diff options
-rw-r--r-- | passes/hierarchy/submod.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/hierarchy/submod.cc b/passes/hierarchy/submod.cc index cb4b6d9f4..2db7cf26b 100644 --- a/passes/hierarchy/submod.cc +++ b/passes/hierarchy/submod.cc @@ -273,8 +273,8 @@ struct SubmodWorker if (opt_name.empty()) { - for (auto w : module->wires()) - w->attributes.erase(ID::submod); + for (auto wire : module->wires()) + wire->attributes.erase(ID::submod); for (auto cell : module->cells()) { |