From e9dede01ca8834ea3c211862a5d6c0119b2b578a Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 24 Oct 2013 11:27:30 +0200 Subject: Fixed handling of boolean attributes (backends) --- backends/verilog/verilog_backend.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/verilog/verilog_backend.cc') diff --git a/backends/verilog/verilog_backend.cc b/backends/verilog/verilog_backend.cc index 0eee4af40..88a48b584 100644 --- a/backends/verilog/verilog_backend.cc +++ b/backends/verilog/verilog_backend.cc @@ -957,7 +957,7 @@ struct VerilogBackend : public Backend { extra_args(f, filename, args, argidx); for (auto it = design->modules.begin(); it != design->modules.end(); it++) { - if ((it->second->attributes.count("\\placeholder") > 0) != placeholders) + if (it->second->get_bool_attribute("\\placeholder") != placeholders) continue; if (selected && !design->selected_whole_module(it->first)) { if (design->selected_module(it->first)) -- cgit v1.2.3