mirror of
https://github.com/verilator/verilator.git
synced 2026-10-02 16:13:34 +02:00
Use STATIC lifetime for variables created from clocking items (#4262)
Signed-off-by: Krzysztof Boronski <[email protected]>
This commit is contained in:
@@ -1174,6 +1174,7 @@ class LinkDotFindVisitor final : public VNVisitor {
|
||||
}
|
||||
AstVar* const newvarp = new AstVar{nodep->fileline(), VVarType::MODULETEMP, varname,
|
||||
VFlagChildDType{}, dtypep};
|
||||
newvarp->lifetime(VLifetime::STATIC);
|
||||
nodep->varp(newvarp);
|
||||
iterate(nodep->exprp());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user