Fix class members getting misoptimized away.

This commit is contained in:
Wilson Snyder
2020-04-10 21:10:21 -04:00
parent 15b40a97d9
commit 1a6c2fc55d
7 changed files with 10 additions and 10 deletions
+1
View File
@@ -328,6 +328,7 @@ private:
bool mightElimVar(AstVar* nodep) {
return (!nodep->isSigPublic() // Can't elim publics!
&& !nodep->isIO()
&& !nodep->isClassMember()
&& ((nodep->isTemp() && !nodep->isTrace())
|| (nodep->isParam() && !nodep->isTrace() && !v3Global.opt.xmlOnly())
|| m_elimUserVars)); // Post-Trace can kill most anything