mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
Internals: Remove some pointless V3Number temporaries. No functional change intended.
This commit is contained in:
+2
-1
@@ -599,7 +599,8 @@ void ParamVisitor::visitCell(AstCell* nodep) {
|
||||
pinp->v3error("Can't convert defparam value to constant: Param "
|
||||
<<pinp->name()<<" of "<<nodep->prettyName());
|
||||
pinp->exprp()->replaceWith(
|
||||
new AstConst(pinp->fileline(), V3Number(pinp, modvarp->width(), 0)));
|
||||
new AstConst(pinp->fileline(),
|
||||
AstConst::WidthedValue(), modvarp->width(), 0));
|
||||
} else if (origp && exprp->sameTree(origp)) {
|
||||
// Setting parameter to its default value. Just ignore it.
|
||||
// This prevents making additional modules, and makes coverage more
|
||||
|
||||
Reference in New Issue
Block a user