aboutsummaryrefslogtreecommitdiffstats
path: root/common/place.cc
diff options
context:
space:
mode:
Diffstat (limited to 'common/place.cc')
-rw-r--r--common/place.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/place.cc b/common/place.cc
index e8fadd16..007fc748 100644
--- a/common/place.cc
+++ b/common/place.cc
@@ -100,7 +100,7 @@ void place_design(Design *design)
if (cell->bel != BelId())
continue;
// Only place one type of Bel at a time
- if (cell->type.compare(bel_type_name) != 0)
+ if (cell->type != bel_type_name)
continue;
while ((bi != blist.end()) &&
@@ -115,7 +115,7 @@ void place_design(Design *design)
design->chip.bindBel(cell->bel, cell->name);
// Back annotate location
- cell->attrs["BEL"] = design->chip.getBelName(cell->bel);
+ cell->attrs["BEL"] = design->chip.getBelName(cell->bel).str();
}
}
}