Show file and line info when possible on internal graph errors.

This commit is contained in:
Wilson Snyder
2018-07-14 18:45:06 -04:00
parent d065662afc
commit cf4bf9b7a5
12 changed files with 38 additions and 6 deletions
+1 -1
View File
@@ -532,7 +532,7 @@ double V3Graph::orderDFSIterate(V3GraphVertex* vertexp) {
// Compute fanouts of each node
// If forward edge, don't double count that fanout
if (vertexp->user() == 2) return vertexp->fanout(); // Already processed it
if (vertexp->user() == 1) v3fatalSrc("Loop found, backward edges should be dead");
if (vertexp->user() == 1) vertexp->v3fatalSrc("Loop found, backward edges should be dead");
vertexp->user(1);
double fanout = 0;
for (V3GraphEdge* edgep = vertexp->outBeginp(); edgep; edgep = edgep->outNextp()) {