aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-04-24 15:35:33 +0100
committerGitHub <noreply@github.com>2020-04-24 15:35:33 +0100
commit5e40589114c1a61825d3772165f457895fc9acd0 (patch)
treef5627eed5d6c6b430bc6ed4acf152cd60cf0e200 /common
parent5cc8fe6c18bfa71a56c7e0da8098ac2bca907826 (diff)
parent3573fcca80669c390b002c17ede911fb73c8bbbf (diff)
downloadnextpnr-5e40589114c1a61825d3772165f457895fc9acd0.tar.gz
nextpnr-5e40589114c1a61825d3772165f457895fc9acd0.tar.bz2
nextpnr-5e40589114c1a61825d3772165f457895fc9acd0.zip
Merge pull request #432 from smunaut/fix_disconnect
design_utils: Set port.net to null when disconnecting
Diffstat (limited to 'common')
-rw-r--r--common/design_utils.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/design_utils.cc b/common/design_utils.cc
index 10212a03..dd866758 100644
--- a/common/design_utils.cc
+++ b/common/design_utils.cc
@@ -111,6 +111,7 @@ void disconnect_port(const Context *ctx, CellInfo *cell, IdString port_name)
port.net->users.end());
if (port.net->driver.cell == cell && port.net->driver.port == port_name)
port.net->driver.cell = nullptr;
+ port.net = nullptr;
}
}