mirror of https://github.com/YosysHQ/yosys.git
kernel: Design::remove(RTLIL::Module *) to check refcount_modules_
This commit is contained in:
parent
3a27906ac6
commit
635b2b8939
|
@ -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…
Reference in New Issue