Skip to content

Commit

Permalink
Fix segfault while handling invalid timing graphs.
Browse files Browse the repository at this point in the history
  • Loading branch information
kmurray committed Apr 11, 2016
1 parent dc0751d commit fc9a4b4
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions vpr/SRC/timing/path_delay.c
Original file line number Diff line number Diff line change
Expand Up @@ -2307,20 +2307,16 @@ static float do_timing_analysis_for_constraint(int source_clock_domain, int sink
//The flag denotes that an input edge to this node was disconnected to break a combinational
//loop, and hence we don't consider this an error.
vpr_throw(VPR_ERROR_TIMING,__FILE__, __LINE__,
"Timing graph started on unexpected node %d %s.%s[%d]. "
"Timing graph started on unexpected node %d. "
"This is a VPR internal error, contact VPR development team.\n",
tnode[inode].pb_graph_pin->parent_node->pb_type->name,
tnode[inode].pb_graph_pin->port->name,
tnode[inode].pb_graph_pin->pin_number);
inode);
}
} else {
if ((tnode[inode].type == TN_INPAD_SOURCE || tnode[inode].type == TN_FF_SOURCE || tnode[inode].type == TN_CONSTANT_GEN_SOURCE)) {
vpr_throw(VPR_ERROR_TIMING,__FILE__, __LINE__,
"Timing graph discovered unexpected edge to node %s.%s[%d].\n"
"Timing graph discovered unexpected edge to node %d.\n"
"This is a VPR internal error, contact VPR development team.\n",
tnode[inode].pb_graph_pin->parent_node->pb_type->name,
tnode[inode].pb_graph_pin->port->name,
tnode[inode].pb_graph_pin->pin_number);
inode);
}
}

Expand Down

0 comments on commit fc9a4b4

Please sign in to comment.