Fix sampling of hierarchical references
Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
This commit is contained in:
parent
141fe8bdad
commit
d09e83dc35
|
|
@ -709,9 +709,8 @@ class AssertVisitor final : public VNVisitor {
|
||||||
}
|
}
|
||||||
VL_DO_DANGLING(pushDeletep(nodep), nodep);
|
VL_DO_DANGLING(pushDeletep(nodep), nodep);
|
||||||
}
|
}
|
||||||
void visit(AstVarRef* nodep) override {
|
void visit(AstNodeVarRef* nodep) override {
|
||||||
iterateChildren(nodep);
|
if (m_inSampled && !nodep->varp()->noSample()) {
|
||||||
if (m_inSampled && !(nodep->varp() && nodep->varp()->noSample())) {
|
|
||||||
if (!nodep->access().isReadOnly()) {
|
if (!nodep->access().isReadOnly()) {
|
||||||
nodep->v3warn(E_UNSUPPORTED,
|
nodep->v3warn(E_UNSUPPORTED,
|
||||||
"Unsupported: Write to variable in sampled expression");
|
"Unsupported: Write to variable in sampled expression");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue