diff options
author | David Shah <dave@ds0.me> | 2020-02-03 13:55:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-03 13:55:07 +0000 |
commit | b4d029a55cd67bafcc9c364d609208a818227204 (patch) | |
tree | ba83fbf0d6c4b1e3b7644c921960929a23f8735a /generic/pack.cc | |
parent | aed93a9390dd909111ab4526e7f3df8d24a2ee0a (diff) | |
parent | f1dbb0c4f2242862dd365da8865e059d2c05a310 (diff) | |
download | nextpnr-b4d029a55cd67bafcc9c364d609208a818227204.tar.gz nextpnr-b4d029a55cd67bafcc9c364d609208a818227204.tar.bz2 nextpnr-b4d029a55cd67bafcc9c364d609208a818227204.zip |
Merge pull request #385 from YosysHQ/router1-arc-fixes
Fixes for partial reconfig demo
Diffstat (limited to 'generic/pack.cc')
-rw-r--r-- | generic/pack.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/pack.cc b/generic/pack.cc index 0eebfb99..43157b6c 100644 --- a/generic/pack.cc +++ b/generic/pack.cc @@ -251,7 +251,8 @@ static void pack_io(Context *ctx) iob = new_cells.back().get(); } packed_cells.insert(ci->name); - std::copy(ci->attrs.begin(), ci->attrs.end(), std::inserter(iob->attrs, iob->attrs.begin())); + if (iob != nullptr) + std::copy(ci->attrs.begin(), ci->attrs.end(), std::inserter(iob->attrs, iob->attrs.begin())); } } for (auto pcell : packed_cells) { |