Add another missing probe_expr_width() call.
The indexed select width argument was missing a call to probe_expr_width() and was crashing the compiler.
This commit is contained in:
parent
2c11850f3c
commit
6257d31582
|
|
@ -1902,6 +1902,7 @@ bool PEIdent::calculate_up_do_width_(Design*des, NetScope*scope,
|
|||
/* Calculate the width expression (in the lsb_ position)
|
||||
first. If the expression is not constant, error but guess 1
|
||||
so we can keep going and find more errors. */
|
||||
probe_expr_width(des, scope, index_tail.lsb);
|
||||
need_constant_expr = true;
|
||||
NetExpr*wid_ex = elab_and_eval(des, scope, index_tail.lsb, -1);
|
||||
need_constant_expr = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue