Internals: Fix virt call in constructor warning. No functional change.

This commit is contained in:
Wilson Snyder 2023-09-01 17:58:17 -04:00
parent 5b7e32581b
commit 147aa41ba5

View File

@ -175,7 +175,7 @@ public:
VerilatedVpioVarBase(const VerilatedVar* varp, const VerilatedScope* scopep)
: m_varp{varp}
, m_scopep{scopep}
, m_fullname{std::string{m_scopep->name()} + '.' + name()} {}
, m_fullname{std::string{m_scopep->name()} + '.' + m_varp->name()} {}
explicit VerilatedVpioVarBase(const VerilatedVpioVarBase* varp) {
if (varp) {
m_varp = varp->m_varp;