From 716320f3ca92b6e17f5b5f1f62bfe558bb0d1546 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 24 May 2012 19:15:28 -0400 Subject: [PATCH] Extra debug check --- src/V3LinkDot.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/V3LinkDot.cpp b/src/V3LinkDot.cpp index c081de8e5..8eb602cef 100644 --- a/src/V3LinkDot.cpp +++ b/src/V3LinkDot.cpp @@ -85,7 +85,7 @@ public: } void errorScopes(AstNode* nodep) { if (!this) { // Silence if we messed it up and aren't debugging - if (debug()) nodep->v3fatalSrc("Void pointer; perhaps used null vxp instead of okVxp?"); + if (debug() || v3Global.opt.debugCheck()) nodep->v3fatalSrc("Void pointer; perhaps used null vxp instead of okVxp?"); return; } { @@ -738,7 +738,8 @@ void V3LinkDot::linkDotGuts(AstNetlist* rootp, bool prearray, bool scoped) { LinkDotState state (prearray,scoped); LinkDotFindVisitor visitor(rootp,&state); if (scoped) { - // Process AstScope's. This needs to be separate pass after whole hierarchy graph created. + // Well after the initial link when we're ready to operate on the flat design, + // process AstScope's. This needs to be separate pass after whole hierarchy graph created. LinkDotScopeVisitor visitors(rootp,&state); } state.dump();