mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
kernel: Design::remove(RTLIL::Module *) to check refcount_modules_
This commit is contained in:
parent
3a27906ac6
commit
635b2b8939
1 changed files with 1 additions and 0 deletions
|
@ -597,6 +597,7 @@ void RTLIL::Design::remove(RTLIL::Module *module)
|
|||
}
|
||||
|
||||
log_assert(modules_.at(module->name) == module);
|
||||
log_assert(refcount_modules_ == 0);
|
||||
modules_.erase(module->name);
|
||||
delete module;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue