From 5d8c1ce84e83bdd05c208fc5279b3455b3c81a86 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Wed, 2 May 2012 20:52:10 -0400 Subject: [PATCH] Internals: Avoid broken recusion --- src/V3Broken.cpp | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/V3Broken.cpp b/src/V3Broken.cpp index e3b1a7061..8f5ce9dab 100644 --- a/src/V3Broken.cpp +++ b/src/V3Broken.cpp @@ -208,8 +208,8 @@ private: nodep->v3fatalSrc("Broken link in node (or something without maybePointedTo)"); } if (nodep->dtypep()) { - if (!nodep->dtypep()->brokeExists()) { nodep->v3error("Broken link in node->dtypep()"); } - else if (!nodep->dtypep()->castNodeDType()) { nodep->v3error("Non-dtype link in node->dtypep()"); } + if (!nodep->dtypep()->brokeExists()) { nodep->v3fatalSrc("Broken link in node->dtypep() to "<<(void*)nodep->dtypep()); } + else if (!nodep->dtypep()->castNodeDType()) { nodep->v3fatalSrc("Non-dtype link in node->dtypep() to "<<(void*)nodep->dtypep()); } } if (v3Global.assertDTypesResolved()) { if (nodep->hasDType()) { @@ -246,10 +246,18 @@ public: void V3Broken::brokenAll(AstNetlist* nodep) { //UINFO(9,__FUNCTION__<<": "<