From 4c7b5005a607f0c30b6cf0fc42ed742a7c022582 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 15 Sep 2009 18:11:56 -0400 Subject: [PATCH] Give fatal instead of coredump --- src/V3Tristate.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/V3Tristate.cpp b/src/V3Tristate.cpp index eab63c238..e77209362 100644 --- a/src/V3Tristate.cpp +++ b/src/V3Tristate.cpp @@ -650,6 +650,7 @@ private: if (nodep->modVarp()->user1p()) { // create the input pin AstVarRef* refp = nodep->exprp()->castVarRef(); + if (!refp) nodep->v3fatal("Unsupported: Tristate pin not connected to simple net"); AstVar* inp; if (refp->varp()->user1p()) { // this is a tristate inp = (AstVar*) refp->varp()->user1p();