mirror of https://github.com/YosysHQ/yosys.git
Create a default selection stack in RTLIL::Design::Design()
This commit is contained in:
parent
c38283dbd0
commit
da360771a1
|
@ -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()
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue