Skip to content

Commit

Permalink
Fix transferring of module attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Jun 11, 2024
1 parent 4f5dddd commit e48d42b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slang_frontend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1601,7 +1601,7 @@ struct RTLILGenVisitor : public ast::ASTVisitor<RTLILGenVisitor, true, false> {
}

RTLIL::Module *mod = design->addModule(module_type_id(symbol));
transfer_attrs(symbol.body, mod);
transfer_attrs(symbol.body.getDefinition(), mod);

ModulePopulatingVisitor modpop(mod);
symbol.body.visit(modpop);
Expand Down

0 comments on commit e48d42b

Please sign in to comment.