mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-29 01:03:29 +02:00
Constify scope reference in NetEConstParam and NetECRealParam
Parameter expressions need to remember the scope they have been declared in so that the code generator backends can insert the right parameter reference, rather than a constant value. Currently the scope is stored as a non-const reference. But that is not needed. Mark the scope reference as const so NetEConstParam and NetECRealParam can be created when only a const scope reference is available. Signed-off-by: Lars-Peter Clausen <[email protected]>
This commit is contained in:
+1
-1
@@ -304,7 +304,7 @@ ivl_variable_type_t NetECReal::expr_type() const
|
||||
return IVL_VT_REAL;
|
||||
}
|
||||
|
||||
NetECRealParam::NetECRealParam(NetScope*s, perm_string n, const verireal&v)
|
||||
NetECRealParam::NetECRealParam(const NetScope*s, perm_string n, const verireal&v)
|
||||
: NetECReal(v), scope_(s), name_(n)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user