Create a default selection stack in RTLIL::Design::Design()

This commit is contained in:
Clifford Wolf 2014-09-02 22:49:24 +02:00
parent c38283dbd0
commit da360771a1
2 changed files with 1 additions and 2 deletions

View File

@ -228,6 +228,7 @@ void RTLIL::Selection::optimize(RTLIL::Design *design)
RTLIL::Design::Design()
{
refcount_modules_ = 0;
selection_stack.push_back(RTLIL::Selection());
}
RTLIL::Design::~Design()

View File

@ -74,9 +74,7 @@ int SIZE(RTLIL::Wire *wire)
void yosys_setup()
{
Pass::init_register();
yosys_design = new RTLIL::Design;
yosys_design->selection_stack.push_back(RTLIL::Selection());
log_push();
}