Fix segfault when error in multi-dimensional part select.

(cherry picked from commit 182c08b528)
This commit is contained in:
Henry Wong 2016-10-23 04:44:54 -04:00 committed by Martin Whitaker
parent 1a8b19baf2
commit ce88deaa97
1 changed files with 2 additions and 0 deletions

View File

@ -5002,6 +5002,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