aboutsummaryrefslogtreecommitdiffstats
path: root/common/design_utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'common/design_utils.cc')
-rw-r--r--common/design_utils.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/design_utils.cc b/common/design_utils.cc
index 640a18a2..74310ab4 100644
--- a/common/design_utils.cc
+++ b/common/design_utils.cc
@@ -56,8 +56,8 @@ void print_utilisation(const Context *ctx)
{
// Sort by Bel type
std::map<BelType, int> used_types;
- for (auto cell : ctx->cells) {
- used_types[ctx->belTypeFromId(cell.second->type)]++;
+ for (auto& cell : ctx->cells) {
+ used_types[ctx->belTypeFromId(cell.second.get()->type)]++;
}
std::map<BelType, int> available_types;
for (auto bel : ctx->getBels()) {