pass jny: ensured the cell collection is cleared between modules
authorAki Van Ness <aki@yosyshq.com>
Thu, 10 Mar 2022 16:05:04 +0000 (11:05 -0500)
committerJacob Lifshay <programmerjake@gmail.com>
Thu, 26 May 2022 02:36:44 +0000 (19:36 -0700)
(cherry picked from commit 6053856f9130dd864b4f38c8b71f13f5e2ca7f6b)

backends/jny/jny.cc

index 1cbfaaddc098f79032a00c603b0809d38650208d..b89283a153f25d733c24ef340046b32b5c5cd50c 100644 (file)
@@ -88,6 +88,7 @@ struct JnyWriter
         // it'll have to do for now,
         void coalesce_cells(Module* mod)
         {
+            _cells.clear();
             for (auto cell : mod->cells()) {
                 const auto cell_type = escape_string(RTLIL::unescape_id(cell->type));