summarylogtreecommitdiffstats
path: root/3694.diff
blob: 9301b7f0d05e9ab2dccb83dc45c420a574afa4b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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(