AstReplicate constructor consistency #738
Labels
area: configure/compiling
Issue involves configuring or compilating Verilator itself
resolution: fixed
Closed; fixed
Author Name: Glen Gibb
Original Redmine Issue: 738 from https://www.veripool.org
Original Date: 2014-04-10
Original Assignee: Glen Gibb
I have noticed inconsistency between the two AstReplicate constructors:
The first constructor sets the data type width (lhsp's width * rhsp's replication count), while the second constructor does not set the width. While this is probably taken care of by the V3Width visitor, I'd suggest adding the following call to dtypeSetLogicSized in the second constructor:
Alternatively, this common code could be shifted to an init() method, or delegating constructors could be used if you want to use C++11 language features.
The text was updated successfully, but these errors were encountered: