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
@@ -138,7 +138,7 @@ private:
// (Here instead of new visitor after V3Descope just to avoid another visitor)
void needNonStaticFunc(AstNode* nodep) {
UASSERT_OBJ(m_funcp, nodep, "Non-static accessor not under a function");
if (m_funcp->isStatic().trueU()) {
if (m_funcp->isStatic().trueUnknown()) {
UINFO(5,"Mark non-public due to "<<nodep<<endl);
m_funcp->isStatic(false);
}