Internals: CFunc VL_RESTORER. No functional change intended.

This commit is contained in:
Wilson Snyder
2020-10-31 09:14:47 -04:00
parent 3a53b32a32
commit e6b0479b80
15 changed files with 106 additions and 84 deletions
+2 -3
View File
@@ -241,13 +241,12 @@ private:
UASSERT_OBJ(m_tracingCall || nodep == m_startNodep, nodep,
"AstCFunc not under AstCCall, or not start node");
m_tracingCall = false;
bool saved_inCFunc = m_inCFunc;
m_inCFunc = true;
VL_RESTORER(m_inCFunc);
{
m_inCFunc = true;
VisitBase vb(this, nodep);
iterateChildren(nodep);
}
m_inCFunc = saved_inCFunc;
}
virtual void visit(AstNode* nodep) override {
VisitBase vb(this, nodep);