mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
AstScopeName is an AstNodeExpr, but V3Task stashed the DPI export scoping marker into the enclosing AstCFunc's statement list (addStmtsp), placing an expression in a statement position. Give AstCFunc a dedicated 'scopeNamep' operand to hold the marker instead. Part of #6280
This commit is contained in:
+1
-2
@@ -1388,10 +1388,9 @@ class TaskVisitor final : public VNVisitor {
|
||||
if (nodep->dpiExport()) {
|
||||
AstScopeName* const snp = nodep->scopeNamep();
|
||||
UASSERT_OBJ(snp, nodep, "Missing scoping context");
|
||||
// The AstScopeName is really a statement(ish) for tracking, not a function
|
||||
snp->dpiExport(true);
|
||||
snp->unlinkFrBack();
|
||||
cfuncp->addStmtsp(snp);
|
||||
cfuncp->scopeNamep(snp);
|
||||
}
|
||||
|
||||
// Create list of arguments and move to function
|
||||
|
||||
Reference in New Issue
Block a user