1
0
mirror of synced 2026-05-04 23:27:07 +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:
Eddie Hung
2020-04-16 08:06:12 -07:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

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