aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--passes/equiv/equiv_make.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/equiv/equiv_make.cc b/passes/equiv/equiv_make.cc
index e75482e9f..66ee28aff 100644
--- a/passes/equiv/equiv_make.cc
+++ b/passes/equiv/equiv_make.cc
@@ -423,8 +423,8 @@ struct EquivMakeWorker
auto driven_cells = bit2driven.at(source_bit);
for (auto driven_cell: driven_cells)
{
- bool is_comb = comb_ct.cell_known(cell->type);
- if (is_comb)
+ bool is_comb = comb_ct.cell_known(driven_cell->type);
+ if (!is_comb)
continue;
if (visited_cells.count(driven_cell) > 0)