aboutsummaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorD. Shah <dave@ds0.me>2021-02-02 17:07:44 +0000
committerD. Shah <dave@ds0.me>2021-02-02 17:07:44 +0000
commit15bf9e4f74cdd52e8e03abcac4c7fa1fc26b3367 (patch)
tree60bccc139d7ea739257322b4bd2d01a0913c503a /generic
parent7cff69f9453e0c95f8eb9a12b004afa20b69501e (diff)
downloadnextpnr-15bf9e4f74cdd52e8e03abcac4c7fa1fc26b3367.tar.gz
nextpnr-15bf9e4f74cdd52e8e03abcac4c7fa1fc26b3367.tar.bz2
nextpnr-15bf9e4f74cdd52e8e03abcac4c7fa1fc26b3367.zip
Post-rebase fix
Signed-off-by: D. Shah <dave@ds0.me>
Diffstat (limited to 'generic')
-rw-r--r--generic/arch.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/generic/arch.h b/generic/arch.h
index 205f388a..ab554d53 100644
--- a/generic/arch.h
+++ b/generic/arch.h
@@ -277,13 +277,12 @@ struct Arch : BaseCtx
std::vector<IdString> getCellTypes() const
{
- std::vector<IdString> cell_types;
- cell_types.reserve(bels.size());
+ std::unordered_set<IdString> cell_types;
for (auto bel : bels) {
- cell_types.push_back(bel.first);
+ cell_types.insert(bel.second.type);
}
- return cell_types;
+ return std::vector<IdString>{cell_types.begin(), cell_types.end()};
}
std::vector<BelBucketId> getBelBuckets() const { return getCellTypes(); }