Fix false unused warning on line coverage objects

This commit is contained in:
Wilson Snyder 2017-09-23 18:00:44 -04:00
parent 4e2ec09f9a
commit c693e52f6c

View File

@ -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.