mirror of https://github.com/YosysHQ/yosys.git
proc_clean: Removing an empty full_case is doing something
This commit is contained in:
parent
fcb8695261
commit
c0e29ef57c
|
|
@ -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…
Reference in New Issue