mirror of
https://github.com/verilator/verilator.git
synced 2026-08-30 09:48:22 +02:00
Fix lifetime of expression coverage variable (#7834)
Signed-off-by: Ryszard Rozak <[email protected]>
This commit is contained in:
@@ -824,6 +824,7 @@ class CoverageVisitor final : public VNVisitor {
|
||||
if (pair.second) {
|
||||
varp = new AstVar{fl, VVarType::MODULETEMP, m_exprTempNames.get(frefp),
|
||||
dtypep};
|
||||
varp->lifetime(VLifetime::AUTOMATIC_EXPLICIT);
|
||||
pair.first->second = varp;
|
||||
if (m_ftaskp) {
|
||||
varp->funcLocal(true);
|
||||
|
||||
Reference in New Issue
Block a user