1
0
mirror of synced 2026-04-25 20:02:10 +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;
}