Use more descriptive variable name.
authorAlberto Gonzalez <boqwxp@airmail.cc>
Mon, 6 Apr 2020 14:37:07 +0000 (14:37 +0000)
committerAlberto Gonzalez <boqwxp@airmail.cc>
Mon, 6 Apr 2020 14:37:07 +0000 (14:37 +0000)
Co-Authored-By: whitequark <whitequark@whitequark.org>
passes/hierarchy/submod.cc

index cb4b6d9f47ffb10c068a3d48f914b8f6d0237bcb..2db7cf26b83d93f8d583ec00fcd4e708f2a66dcd 100644 (file)
@@ -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())
                        {