3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-15 03:35:40 +00:00

rtlil_frontend: allocate meta block

This commit is contained in:
Emil J. Tywoniak 2026-06-19 11:48:44 +02:00
parent e71ed3007d
commit d974527ab4

View file

@ -773,6 +773,8 @@ struct RTLILFrontendWorker {
} else
error("RTLIL error: redefinition of memory %s.", design->twines.str(mem_name).c_str());
}
if (memory->meta_ == nullptr)
memory->meta_ = design->alloc_obj_meta();
memory->meta_->name = mem_name;
break;
}