From e679a5d04633e0c0626057ed2760ddb9595eea5d Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 24 Oct 2013 11:37:54 +0200 Subject: Fixed handling of boolean attributes (passes) --- passes/opt/opt_clean.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'passes/opt') diff --git a/passes/opt/opt_clean.cc b/passes/opt/opt_clean.cc index 21ef320e..3d75b640 100644 --- a/passes/opt/opt_clean.cc +++ b/passes/opt/opt_clean.cc @@ -47,7 +47,7 @@ static void rmunused_module_cells(RTLIL::Module *module, bool verbose) wire2driver.insert(sig, cell); } } - if (cell->type == "$memwr" || cell->attributes.count("\\keep")) + if (cell->type == "$memwr" || cell->get_bool_attribute("\\keep")) queue.insert(cell); unused.insert(cell); } -- cgit v1.2.3