From acabaab6acd4b1cf11b030288d502eb411b45f0f Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Wed, 11 Nov 2015 20:37:52 -0500 Subject: [PATCH] Internals: Avoid tristate coredump. --- src/V3Tristate.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/V3Tristate.cpp b/src/V3Tristate.cpp index 9f605d5cd..1ecc084f8 100644 --- a/src/V3Tristate.cpp +++ b/src/V3Tristate.cpp @@ -1114,6 +1114,7 @@ class TristateVisitor : public TristateBaseVisitor { AstPin* outpinp; { AstVar* outModVarp = (AstVar*) nodep->modVarp()->user4p(); + if (!outModVarp) nodep->v3fatalSrc("Unlinked"); AstNode* outexprp = nodep->exprp()->cloneTree(false); // Note has lvalue() set outpinp = new AstPin(nodep->fileline(), nodep->pinNum(),