Internals: Only need to applyFTask once. No functional change intended.

This commit is contained in:
Wilson Snyder 2020-10-15 21:02:24 -04:00
parent 48597bebaf
commit 5d8019f941

View File

@ -104,12 +104,13 @@ private:
// VISITs
virtual void visit(AstNodeFTask* nodep) override {
V3Config::applyFTask(m_modp, nodep);
if (!nodep->user1SetOnce()) { // Process only once.
V3Config::applyFTask(m_modp, nodep);
cleanFileline(nodep);
m_ftaskp = nodep;
iterateChildren(nodep);
{
m_ftaskp = nodep;
iterateChildren(nodep);
}
m_ftaskp = nullptr;
}
}