Use STATIC lifetime for variables created from clocking items (#4262)
Signed-off-by: Krzysztof Boronski <kboronski@antmicro.com>
This commit is contained in:
parent
db7935faf3
commit
0e24f36fef
|
|
@ -1174,6 +1174,7 @@ class LinkDotFindVisitor final : public VNVisitor {
|
||||||
}
|
}
|
||||||
AstVar* const newvarp = new AstVar{nodep->fileline(), VVarType::MODULETEMP, varname,
|
AstVar* const newvarp = new AstVar{nodep->fileline(), VVarType::MODULETEMP, varname,
|
||||||
VFlagChildDType{}, dtypep};
|
VFlagChildDType{}, dtypep};
|
||||||
|
newvarp->lifetime(VLifetime::STATIC);
|
||||||
nodep->varp(newvarp);
|
nodep->varp(newvarp);
|
||||||
iterate(nodep->exprp());
|
iterate(nodep->exprp());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue