Fix segfault when error in multi-dimensional part select.

This commit is contained in:
Henry Wong 2016-10-23 04:44:54 -04:00 committed by Stephen Williams
parent 69a96112e8
commit 182c08b528
1 changed files with 2 additions and 0 deletions

View File

@ -5010,6 +5010,8 @@ NetExpr* PEIdent::elaborate_expr_net_bit_(Design*des, NetScope*scope,
ivl_assert(*this, index_tail.lsb == 0); ivl_assert(*this, index_tail.lsb == 0);
NetExpr*mux = elab_and_eval(des, scope, index_tail.msb, -1, need_const); NetExpr*mux = elab_and_eval(des, scope, index_tail.msb, -1, need_const);
if (!mux)
return 0;
if (const netdarray_t*darray = net->sig()->darray_type()) { if (const netdarray_t*darray = net->sig()->darray_type()) {
// Special case: This is a select of a dynamic // Special case: This is a select of a dynamic