Fix stripping on randomize (#6144 partial)
This commit is contained in:
parent
73da5e51a6
commit
e015805194
|
|
@ -6300,7 +6300,10 @@ class WidthVisitor final : public VNVisitor {
|
|||
}
|
||||
}
|
||||
UASSERT_OBJ(nodep->taskp(), nodep, "Unlinked");
|
||||
if (nodep->didWidth()) return;
|
||||
if (nodep->didWidth()) {
|
||||
nodep->addPinsp(withp);
|
||||
return;
|
||||
}
|
||||
if ((nodep->taskp()->classMethod() && !nodep->taskp()->isStatic())
|
||||
&& !VN_IS(m_procedurep, InitialAutomatic)
|
||||
&& (!m_ftaskp || !m_ftaskp->classMethod() || m_ftaskp->isStatic()) && !m_constraintp) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue