mirror of
https://github.com/verilator/verilator.git
synced 2026-09-07 01:52:17 +02:00
Fix IMPURE errors due to X-assignment temporary variables.
This commit is contained in:
+2
-1
@@ -208,7 +208,8 @@ private:
|
||||
virtual void visit(AstVarRef* nodep, AstNUser*) {
|
||||
nodep->iterateChildren(*this);
|
||||
if (nodep->varp()->user4p() != m_curVxp) {
|
||||
if (m_curVxp->pure()) {
|
||||
if (m_curVxp->pure()
|
||||
&& !nodep->varp()->isPure()) {
|
||||
m_curVxp->impure(nodep);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user