From 696f7dc17300cadc75a910bbb93229fb51b53585 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 9297a5087..06fe2bbd9 100644 --- a/kernel/rtlil_bufnorm.cc +++ b/kernel/rtlil_bufnorm.cc @@ -91,9 +91,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);