mirror of
https://github.com/verilator/verilator.git
synced 2026-09-02 10:48:27 +02:00
Fix dpi context functions (#5788)
This commit is contained in:
@@ -221,7 +221,8 @@ class LinkResolveVisitor final : public VNVisitor {
|
||||
letp->user2(false);
|
||||
return;
|
||||
}
|
||||
if (nodep->taskp() && (nodep->taskp()->dpiContext() || nodep->taskp()->dpiExport())) {
|
||||
if (nodep->taskp() && !nodep->scopeNamep()
|
||||
&& (nodep->taskp()->dpiContext() || nodep->taskp()->dpiExport())) {
|
||||
nodep->scopeNamep(new AstScopeName{nodep->fileline(), false});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user