Internals: Redo post-error additional information to be part of error calls.

This commit is contained in:
Wilson Snyder
2025-05-10 16:20:12 -04:00
parent 0f528d136d
commit 680236b03e
17 changed files with 128 additions and 117 deletions
+3 -4
View File
@@ -343,10 +343,9 @@ void GraphAcyc::simplifyOut(GraphAcycVertex* avertexp) {
V3GraphVertex* inVertexp = inEdgep->fromp();
if (inVertexp == avertexp) {
if (debug()) v3error("Non-cutable vertex=" << avertexp); // LCOV_EXCL_LINE
v3error("Circular logic when ordering code (non-cutable edge loop)");
m_origGraphp->reportLoops(
&V3GraphEdge::followNotCutable,
avertexp->origVertexp()); // calls OrderGraph::loopsVertexCb
v3error("Circular logic when ordering code (non-cutable edge loop)\n"
<< m_origGraphp->reportLoops( // calls OrderGraph::loopsVertexCb
&V3GraphEdge::followNotCutable, avertexp->origVertexp()));
// Things are unlikely to end well at this point,
// but we'll try something to get to further errors...
inEdgep->cutable(true);