diff options
author | YRabbit <rabbit@yrabbit.cyou> | 2021-07-07 08:36:45 +1000 |
---|---|---|
committer | YRabbit <rabbit@yrabbit.cyou> | 2021-07-07 08:36:45 +1000 |
commit | 5f018df4e463a37f5a63aeb9bd7a55988e4f2027 (patch) | |
tree | fac6d37cd3954f44475d904094a3af231fc664f6 /common/design_utils.cc | |
parent | fd7734f0006d6522dea1ea4ea29750c8bafc77c4 (diff) | |
parent | c696e885736ed052bd1d5e8fd91b42ee3bc6af9f (diff) | |
download | nextpnr-5f018df4e463a37f5a63aeb9bd7a55988e4f2027.tar.gz nextpnr-5f018df4e463a37f5a63aeb9bd7a55988e4f2027.tar.bz2 nextpnr-5f018df4e463a37f5a63aeb9bd7a55988e4f2027.zip |
Merge branch 'master' into io_port
Diffstat (limited to 'common/design_utils.cc')
-rw-r--r-- | common/design_utils.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/design_utils.cc b/common/design_utils.cc index a892feaa..da5decf9 100644 --- a/common/design_utils.cc +++ b/common/design_utils.cc @@ -161,7 +161,8 @@ void rename_net(Context *ctx, NetInfo *net, IdString new_name) if (net == nullptr) return; NPNR_ASSERT(!ctx->nets.count(new_name)); - std::swap(ctx->nets[net->name], ctx->nets[new_name]); + ctx->nets[new_name]; + std::swap(ctx->nets.at(net->name), ctx->nets.at(new_name)); ctx->nets.erase(net->name); net->name = new_name; } |