opt_reduce: Fix use-after-free.

Fixes #3418.
This commit is contained in:
Marcelina Kościelnicka 2022-07-23 16:42:54 +02:00
parent 7e02b6a70b
commit f679b756d8
1 changed files with 2 additions and 4 deletions

View File

@ -594,11 +594,9 @@ struct OptReduceWorker
if (cell->type.in(ID($mux), ID($pmux))) if (cell->type.in(ID($mux), ID($pmux)))
opt_pmux(cell); opt_pmux(cell);
else if (cell->type == ID($bmux))
if (cell->type == ID($bmux))
opt_bmux(cell); opt_bmux(cell);
else if (cell->type == ID($demux))
if (cell->type == ID($demux))
opt_demux(cell); opt_demux(cell);
} }
} }