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