mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
On WIDTH warnings, show variable name causing error.
This commit is contained in:
+1
-1
@@ -1674,7 +1674,7 @@ private:
|
||||
// Default: Just iterate
|
||||
if (m_required) {
|
||||
nodep->v3error("Expecting expression to be constant, but can't convert a "
|
||||
<<nodep->typeName()<<" to constant.");
|
||||
<<nodep->prettyTypeName()<<" to constant.");
|
||||
} else {
|
||||
// Calculate the width of this operation
|
||||
if (m_params && !nodep->width()) {
|
||||
|
||||
Reference in New Issue
Block a user