Internals: Allow const & non-member CFuncs for class branch. No functional change.

This commit is contained in:
Wilson Snyder
2020-02-01 10:57:55 -05:00
parent f00ff61559
commit 80d94891e1
6 changed files with 43 additions and 24 deletions
+1 -1
View File
@@ -273,7 +273,7 @@ private:
virtual void visit(AstCFunc* nodep) VL_OVERRIDE {
if (!nodep->user1()) {
m_needThis = false;
m_allowThis = nodep->isStatic().falseU(); // Non-static or unknown if static
m_allowThis = nodep->isStatic().falseUnknown(); // Non-static or unknown if static
iterateChildren(nodep);
nodep->user1(true);
if (m_needThis) nodep->isStatic(false);