1
0
mirror of synced 2026-04-05 06:11:11 +00:00

proc_clean: Removing an empty full_case is doing something

This commit is contained in:
Krystine Sherwin
2026-01-07 13:10:32 +13:00
parent fcb8695261
commit c0e29ef57c

View File

@@ -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();