Skip to content

Commit 4437c2c

Browse files
committed
place: fix empty type seg fault
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent 44373fe commit 4437c2c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vpr/src/route/clock_connection_builders.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,12 @@ void ClockToPinsConnection::create_switches(const ClockRRGraphBuilder& clock_gra
199199
}
200200

201201
auto type = grid[x][y].type;
202+
203+
// Skip EMPTY type
204+
if (is_empty_type(type)) {
205+
continue;
206+
}
207+
202208
auto width_offset = grid[x][y].width_offset;
203209
auto height_offset = grid[x][y].height_offset;
204210

0 commit comments

Comments
 (0)