summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-07-27 21:12:09 +0200
committerClifford Wolf <clifford@clifford.at>2014-07-27 21:12:09 +0200
commitc4bdba78cb88df6628d975aad7a92c8cebc5d95f (patch)
treebc35e2aa103482bf4c76d9e2e56ac08ceaa74e8f /frontends
parent5da343b7de8c4fd45695af68aaba3d5091d8e670 (diff)
Added proper Design->addModule interface
Diffstat (limited to 'frontends')
-rw-r--r--frontends/ast/ast.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/frontends/ast/ast.cc b/frontends/ast/ast.cc
index 17041686..d38cb5e3 100644
--- a/frontends/ast/ast.cc
+++ b/frontends/ast/ast.cc
@@ -1051,6 +1051,7 @@ RTLIL::IdString AstModule::derive(RTLIL::Design *design, std::map<RTLIL::IdStrin
RTLIL::Module *AstModule::clone() const
{
AstModule *new_mod = new AstModule;
+ new_mod->name = name;
cloneInto(new_mod);
new_mod->ast = ast->clone();