diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-07 17:50:36 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-06-07 17:50:36 +0200 |
commit | 37d2fc65b1af2de1282948ecdc5f1294f34c6fb5 (patch) | |
tree | 49a636e2a2394e08351edcb2dc839178a875f4a8 /common/place.cc | |
parent | c13c15badaaf68de6c28df44b02afc2f74eb8186 (diff) | |
download | nextpnr-37d2fc65b1af2de1282948ecdc5f1294f34c6fb5.tar.gz nextpnr-37d2fc65b1af2de1282948ecdc5f1294f34c6fb5.tar.bz2 nextpnr-37d2fc65b1af2de1282948ecdc5f1294f34c6fb5.zip |
Fix placer build for dummy arch
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'common/place.cc')
-rw-r--r-- | common/place.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/place.cc b/common/place.cc index e27a46be..172001a6 100644 --- a/common/place.cc +++ b/common/place.cc @@ -47,7 +47,7 @@ void place_design(Design *design) { } bel_type = belTypeFromId(cell->type); - if (bel_type == TYPE_NIL) { + if (bel_type == BelType()) { log_error("No Bel of type \'%s\' defined for " "this chip\n", cell->type.c_str()); } @@ -56,9 +56,9 @@ void place_design(Design *design) { } for(auto bel_type_name : types_used) { - BelRange blist = design->chip.getBels(); + auto blist = design->chip.getBels(); BelType bel_type = belTypeFromId(bel_type_name); - BelIterator bi = blist.begin(); + auto bi = blist.begin(); for(auto cell_entry : design->cells) { CellInfo *cell = cell_entry.second; |