vhdlpp: Minor assert.

This commit is contained in:
Maciej Suminski 2015-01-23 16:47:28 +01:00
parent 870a826225
commit 9ba7694484
1 changed files with 2 additions and 0 deletions

View File

@ -513,7 +513,9 @@ int ExpAggregate::elaborate_expr_record_(Entity*ent, Architecture*arc, const VTy
ivl_assert(*this, field);
perm_string field_name = field->peek_name();
idx = -1;
const VTypeRecord::element_t*el = ltype->element_by_name(field_name, &idx);
ivl_assert(*this, idx >= 0);
aggregate_[idx] = tmp;
errors += aggregate_[idx].expr->elaborate_expr(ent, arc, el->peek_type());