diff options
author | Alessandro Comodi <acomodi@antmicro.com> | 2021-10-01 11:53:56 +0200 |
---|---|---|
committer | Alessandro Comodi <acomodi@antmicro.com> | 2021-10-01 11:53:56 +0200 |
commit | a3ba83fce3629fa4c0ec8034b01d112e2c3be78a (patch) | |
tree | 24f66da6fabd084211e7b01027d084ab96c85961 /fpga_interchange | |
parent | 7550b60069facbca9e4292ad2753f8e317a5d681 (diff) | |
download | nextpnr-a3ba83fce3629fa4c0ec8034b01d112e2c3be78a.tar.gz nextpnr-a3ba83fce3629fa4c0ec8034b01d112e2c3be78a.tar.bz2 nextpnr-a3ba83fce3629fa4c0ec8034b01d112e2c3be78a.zip |
interchange: fix uninitialized memory bug in cluster placement
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
Diffstat (limited to 'fpga_interchange')
-rw-r--r-- | fpga_interchange/arch_pack_clusters.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpga_interchange/arch_pack_clusters.cc b/fpga_interchange/arch_pack_clusters.cc index acb61917..b003812e 100644 --- a/fpga_interchange/arch_pack_clusters.cc +++ b/fpga_interchange/arch_pack_clusters.cc @@ -99,7 +99,7 @@ static void handle_expansion_node(const Context *ctx, WireId prev_wire, PipId pi NPNR_ASSERT(false); } } else { - if (next_node.state == IN_ROUTING) + if (curr_node.state == IN_ROUTING) next_node.depth++; next_node.state = curr_node.state; } |