Fix false unused warning on line coverage objects
This commit is contained in:
parent
4e2ec09f9a
commit
c693e52f6c
|
|
@ -168,6 +168,7 @@ private:
|
|||
// Add signal to hold the old value
|
||||
string newvarname = (string)"__Vtogcov__"+nodep->shortName();
|
||||
AstVar* chgVarp = new AstVar (nodep->fileline(), AstVarType::MODULETEMP, newvarname, nodep);
|
||||
chgVarp->fileline()->modifyWarnOff(V3ErrorCode::UNUSED, true);
|
||||
m_modp->addStmtp(chgVarp);
|
||||
|
||||
// Create bucket for each dimension * bit.
|
||||
|
|
|
|||
Loading…
Reference in New Issue