Fix COVERAGEIGN-ignored get_inst_coverage and other covergroup methods (#6383).

This commit is contained in:
Wilson Snyder
2025-09-04 22:18:56 -04:00
parent a12caa4799
commit feea221f39
8 changed files with 113 additions and 43 deletions
+1 -1
View File
@@ -1870,7 +1870,7 @@ AstNodeFTask* V3Task::taskConnectWrapNew(AstNodeFTask* taskp, const string& newn
AstNode* newCallInsertp = nullptr;
if (VN_IS(taskp, Func)) {
AstVar* const fvarp = VN_AS(taskp->fvarp(), Var);
UASSERT(fvarp, "FuncRef without fvar");
UASSERT_OBJ(fvarp, taskp, "FuncRef without fvar");
AstVar* const newFVarp = fvarp->cloneTree(true);
oldNewVars.emplace(fvarp, newFVarp);
newFVarp->name(newTaskp->name());