Fix --trace-coverage with randReset.

This commit is contained in:
Wilson Snyder 2019-11-01 20:09:57 -04:00
parent f781085755
commit ff0dd26fe5
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ private:
if (!trace_var_name.empty() && v3Global.opt.traceCoverage()) {
AstVar* varp = new AstVar(incp->fileline(),
AstVarType::MODULETEMP, trace_var_name,
VFlagBitPacked(), 32);
incp->findUInt32DType());
varp->trace(true);
varp->fileline()->modifyWarnOff(V3ErrorCode::UNUSED, true);
m_modp->addStmtp(varp);