mirror of
https://github.com/YosysHQ/yosys
synced 2026-01-09 20:39:00 +00:00
proc_clean: Removing an empty full_case is doing something
This commit is contained in:
parent
fcb8695261
commit
c0e29ef57c
1 changed files with 1 additions and 0 deletions
|
|
@ -97,6 +97,7 @@ void proc_clean_switch(RTLIL::SwitchRule *sw, RTLIL::CaseRule *parent, bool &did
|
|||
all_empty = false;
|
||||
if (all_empty)
|
||||
{
|
||||
did_something = true;
|
||||
for (auto cs : sw->cases)
|
||||
delete cs;
|
||||
sw->cases.clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue