Internals: Cleanup some missing VL_RESTORER in V3Gate. No functional change intended.

This commit is contained in:
Wilson Snyder
2023-05-21 12:49:07 -04:00
parent 65667356b6
commit 950e29d56e
2 changed files with 29 additions and 40 deletions
+5 -7
View File
@@ -133,12 +133,10 @@ private:
UINFO(4, " CFUNC " << nodep << endl);
VL_RESTORER(m_cfuncp);
VL_RESTORER(m_nodeDepth);
{
m_cfuncp = nodep;
m_nodeDepth = 0;
const VNUser2InUse user2InUse;
iterateChildrenConst(nodep);
}
m_cfuncp = nodep;
m_nodeDepth = 0;
const VNUser2InUse user2InUse;
iterateChildrenConst(nodep);
}
void visit(AstCCall* nodep) override {
@@ -204,9 +202,9 @@ private:
}
void visit(AstNode* nodep) override {
VL_RESTORER(m_nodeDepth);
++m_nodeDepth;
iterateChildrenConst(nodep);
--m_nodeDepth;
}
public: