vhdlpp: Elaborate prefix & indices for ExpName.

This commit is contained in:
Maciej Suminski 2015-06-11 11:45:22 +02:00
parent 169228ad0f
commit b3c1fa3e85
1 changed files with 10 additions and 1 deletions

View File

@ -954,13 +954,22 @@ const VType* ExpName::fit_type(Entity*ent, ScopeBase*scope, const VTypeArray*)co
return probe_type(ent, scope);
}
int ExpName::elaborate_expr(Entity*, ScopeBase*, const VType*ltype)
int ExpName::elaborate_expr(Entity*ent, ScopeBase*scope, const VType*ltype)
{
if (ltype) {
ivl_assert(*this, ltype != 0);
set_type(ltype);
}
if(prefix_.get())
prefix_.get()->elaborate_expr(ent, scope, NULL);
if(index_)
index_->elaborate_expr(ent, scope, &primitive_INTEGER);
if(lsb_)
lsb_->elaborate_expr(ent, scope, &primitive_INTEGER);
return 0;
}