From 0e24f36fef0cf13d1e3c07196d3e9280fefc64f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Boro=C5=84ski?= <94375110+kboronski-ant@users.noreply.github.com> Date: Thu, 1 Jun 2023 17:49:27 +0200 Subject: [PATCH] Use STATIC lifetime for variables created from clocking items (#4262) Signed-off-by: Krzysztof Boronski --- src/V3LinkDot.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/V3LinkDot.cpp b/src/V3LinkDot.cpp index eeb29ba06..8bfefe137 100644 --- a/src/V3LinkDot.cpp +++ b/src/V3LinkDot.cpp @@ -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()); }