summarylogtreecommitdiffstats
path: root/3694.diff
diff options
context:
space:
mode:
authorJiuyang Liu2022-10-20 14:42:12 +0800
committerJiuyang Liu2022-10-20 14:42:12 +0800
commita8ccddb850c8840a7f81191a37fecc9d1e3c1b20 (patch)
tree32899f772aaf3c9eac56094c2448fe68eb7e1aa0 /3694.diff
parentbe8e03767487d93e2a384070b8159eeb6f67c012 (diff)
downloadaur-a8ccddb850c8840a7f81191a37fecc9d1e3c1b20.tar.gz
add patch to fix vpi
Diffstat (limited to '3694.diff')
-rw-r--r--3694.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/3694.diff b/3694.diff
new file mode 100644
index 000000000000..9301b7f0d05e
--- /dev/null
+++ b/3694.diff
@@ -0,0 +1,13 @@
+diff --git a/src/V3EmitCSyms.cpp b/src/V3EmitCSyms.cpp
+index 6dcfab8b1..d8fdfa58a 100644
+--- a/src/V3EmitCSyms.cpp
++++ b/src/V3EmitCSyms.cpp
+@@ -295,7 +295,7 @@ class EmitCSyms final : EmitCBaseVisitor {
+ if (v3Global.opt.vpi()) {
+ const string type
+ = (nodep->origModName() == "__BEGIN__") ? "SCOPE_OTHER" : "SCOPE_MODULE";
+- const string name = nodep->scopep()->name() + "__DOT__" + nodep->name();
++ const string name = nodep->scopep()->shortName() + "__DOT__" + nodep->name();
+ const string name_dedot = AstNode::dedotName(name);
+ const int timeunit = m_modp->timeunit().powerOfTen();
+ m_vpiScopeCandidates.insert(