Internals: Avoid tristate coredump.

This commit is contained in:
Wilson Snyder 2015-11-11 20:37:52 -05:00
parent b0a249f338
commit acabaab6ac

View File

@ -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(),