For UNUSED, ignore black boxed sys calls

This commit is contained in:
Wilson Snyder
2010-12-30 07:55:31 -05:00
parent 6283df7491
commit 2cb97f7475
9 changed files with 60 additions and 7 deletions
+6
View File
@@ -154,6 +154,12 @@ private:
}
m_setRefLvalue = last_setRefLvalue;
}
virtual void visit(AstSysIgnore* nodep, AstNUser*) {
// Can't know if lvalue or not; presume so as stricter
bool last_setRefLvalue = m_setRefLvalue;
nodep->iterateChildren(*this);
m_setRefLvalue = last_setRefLvalue;
}
virtual void visit(AstReadMem* nodep, AstNUser*) {
bool last_setRefLvalue = m_setRefLvalue;
{