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)))
opt_pmux(cell);
if (cell->type == ID($bmux))
else if (cell->type == ID($bmux))
opt_bmux(cell);
if (cell->type == ID($demux))
else if (cell->type == ID($demux))
opt_demux(cell);
}
}