Fix virtual methods (#4616)

This commit is contained in:
Ryszard Rozak
2023-10-24 15:51:46 +02:00
committed by GitHub
parent 17721aff55
commit 84125d7c92
6 changed files with 72 additions and 2 deletions
+6
View File
@@ -638,6 +638,12 @@ private:
beginp->addNext(ccallp->makeStmt());
}
if (const AstFuncRef* const funcRefp = VN_CAST(refp, FuncRef)) {
ccallp->superReference(funcRefp->superReference());
} else if (const AstTaskRef* const taskRefp = VN_CAST(refp, TaskRef)) {
ccallp->superReference(taskRefp->superReference());
}
// Convert complicated outputs to temp signals
{
const V3TaskConnects tconnects = V3Task::taskConnects(refp, refp->taskp()->stmtsp());