Fix for compilation problem created by constant expr. rework
This patch fixes a compilation problem in the UDP range code created since it and the constant expression rework were done at the same time.
This commit is contained in:
parent
0bc746dab0
commit
428755ce62
|
|
@ -1781,10 +1781,8 @@ unsigned PGModule::calculate_instance_count_(Design*des, NetScope*scope,
|
|||
* I am expected to make more than one gate. Figure out how many are
|
||||
* desired. */
|
||||
if (msb_) {
|
||||
need_constant_expr = true;
|
||||
NetExpr*msb_exp = elab_and_eval(des, scope, msb_, -1);
|
||||
NetExpr*lsb_exp = elab_and_eval(des, scope, lsb_, -1);
|
||||
need_constant_expr = false;
|
||||
NetExpr*msb_exp = elab_and_eval(des, scope, msb_, -1, true);
|
||||
NetExpr*lsb_exp = elab_and_eval(des, scope, lsb_, -1, true);
|
||||
|
||||
NetEConst*msb_con = dynamic_cast<NetEConst*>(msb_exp);
|
||||
NetEConst*lsb_con = dynamic_cast<NetEConst*>(lsb_exp);
|
||||
|
|
|
|||
Loading…
Reference in New Issue