Skip to content

Commit e2f3f72

Browse files
acomodikmurray
authored andcommitted
vpr: skip empty type
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent 3b5dff2 commit e2f3f72

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vpr/src/util/vpr_utils.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,6 +1723,12 @@ void free_blk_pin_from_port_pin() {
17231723
if (f_blk_pin_from_port_pin != nullptr) {
17241724
for (const auto& type : device_ctx.logical_block_types) {
17251725
int itype = type.index;
1726+
1727+
// Avoid EMPTY_TYPE
1728+
if (itype == 0) {
1729+
continue;
1730+
}
1731+
17261732
num_ports = type.pb_type->num_ports;
17271733
for (iport = 0; iport < num_ports; iport++) {
17281734
free(f_blk_pin_from_port_pin[itype][iport]);

0 commit comments

Comments
 (0)