diff options
Diffstat (limited to 'kernel/rtlil.cc')
-rw-r--r-- | kernel/rtlil.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index 94dbf31c0..a09f4a0d1 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -1595,10 +1595,9 @@ void RTLIL::Module::remove(RTLIL::Cell *cell) while (!cell->connections_.empty()) cell->unsetPort(cell->connections_.begin()->first); - auto it = cells_.find(cell->name); - log_assert(it != cells_.end()); + log_assert(cells_.count(cell->name) != 0); log_assert(refcount_cells_ == 0); - cells_.erase(it); + cells_.erase(cell->name); delete cell; } |