mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Merge pull request #1927 from YosysHQ/eddie/design_remove_assert
kernel: Design::remove(RTLIL::Module *) to check refcount_modules_
This commit is contained in:
commit
aa552cefa3
2 changed files with 2 additions and 1 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