diff --git a/src/db/db/dbLayoutToNetlist.cc b/src/db/db/dbLayoutToNetlist.cc index 3aa885b51..42888ec9c 100644 --- a/src/db/db/dbLayoutToNetlist.cc +++ b/src/db/db/dbLayoutToNetlist.cc @@ -1817,7 +1817,7 @@ NetBuilder::build_net_rec (db::cell_index_type ci, size_t cid, db::Cell &tc, con cm = m_reuse_table.insert (std::make_pair (cmap_key, std::make_pair (std::numeric_limits::max (), false))).first; } - } else if (!cm->second.second) { + } else if (!cm->second.second && cm->second.first != std::numeric_limits::max ()) { // initialize cell (after reuse of the net builder) build_net_rec (subci, subcid, target ().cell (cm->second.first), lmap, 0, std::string (), netname_propid, tr_mag);