From b206223c4067fa052a5bb40ac1e4682124fd4515 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Sat, 7 Mar 2026 01:10:04 +0100 Subject: [PATCH] rtlil_bufnorm: fix cell deletion deferral bug --- kernel/rtlil_bufnorm.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/rtlil_bufnorm.cc b/kernel/rtlil_bufnorm.cc index 1a1529fcd..73cca814b 100644 --- a/kernel/rtlil_bufnorm.cc +++ b/kernel/rtlil_bufnorm.cc @@ -75,9 +75,9 @@ struct RTLIL::SigNormIndex else cells_to_remove.push_back(cell); - for (auto cell : cells_to_remove) - module->remove(cell); } + for (auto cell : cells_to_remove) + module->remove(cell); for (auto portname : module->ports) { Wire *wire = module->wire(portname);