Skip to content

Commit eb13bd0

Browse files
committed
Add missing flag check.
Signed-off-by: Keith Rothman <[email protected]>
1 parent db9eed4 commit eb13bd0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vpr/src/route/rr_graph_storage.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ constexpr size_t kEdgeToNodeRatio = 10;
2121

2222
void t_rr_graph_storage::alloc_and_load_edges(const t_rr_edge_info_set* rr_edges_to_create) {
2323
// Cannot mutate edges once edges have been read!
24+
VTR_ASSERT(!edges_read_);
25+
2426
size_t required_size = edge_src_node_.size() + rr_edges_to_create->size();
2527
if (edge_src_node_.capacity() < required_size) {
2628
size_t new_capacity = std::min(edge_src_node_.capacity(), storage_.size() * kEdgeToNodeRatio);

0 commit comments

Comments
 (0)