3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-12 12:08:19 +00:00

kernel: Design::remove(RTLIL::Module *) to check refcount_modules_

This commit is contained in:
Eddie Hung 2020-04-14 09:31:06 -07:00
parent 3a27906ac6
commit 635b2b8939

View file

@ -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;
}