summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kernel/rtlil.cc1
-rw-r--r--kernel/yosys.cc2
2 files changed, 1 insertions, 2 deletions
diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc
index f237f57e..35cd54b4 100644
--- a/kernel/rtlil.cc
+++ b/kernel/rtlil.cc
@@ -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()
diff --git a/kernel/yosys.cc b/kernel/yosys.cc
index 7b8173b6..0ecb4cda 100644
--- a/kernel/yosys.cc
+++ b/kernel/yosys.cc
@@ -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();
}