diff --git a/src/V3LinkDot.cpp b/src/V3LinkDot.cpp index 6ed341a69..2de309ace 100644 --- a/src/V3LinkDot.cpp +++ b/src/V3LinkDot.cpp @@ -487,6 +487,12 @@ private: // nodep->flatsp()->iterateAndNext(*this); } + virtual void visit(AstNodeFTask* nodep, AstNUser*) { + if (!m_beginp) { // For now, we don't support xrefs into functions inside begin blocks + m_statep->insertSym(m_cellVxp, nodep->name(), nodep); + } + // No recursion, we don't want to pick up variables + } virtual void visit(AstVar* nodep, AstNUser*) { if (!m_statep->forScopeCreation() && !m_beginp // For now, we don't support xrefs into begin blocks @@ -496,12 +502,6 @@ private: UINFO(9," Not allowing dot refs to: "<insertSym(m_cellVxp, nodep->name(), nodep); - } - // No recursion, we don't want to pick up variables - } virtual void visit(AstCFunc* nodep, AstNUser*) { // Ignore all AstVars under functions }