summaryrefslogtreecommitdiff
path: root/kernel/rtlil.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-09-02 22:49:24 +0200
committerClifford Wolf <clifford@clifford.at>2014-09-02 22:49:24 +0200
commitda360771a193707b59eac9b95b3bfe1652a057aa (patch)
tree8f09645fbab743bfe8b0246584d29b007f674a70 /kernel/rtlil.cc
parentc38283dbd033ba95554600bbaa850de707ab2a78 (diff)
Create a default selection stack in RTLIL::Design::Design()
Diffstat (limited to 'kernel/rtlil.cc')
-rw-r--r--kernel/rtlil.cc1
1 files changed, 1 insertions, 0 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()