vhdlpp: Allow procedure calls with empty param list.
This commit is contained in:
parent
5535b7d26c
commit
cb40a845e1
|
|
@ -210,12 +210,15 @@ void VariableSeqAssignment::write_to_stream(ostream&fd)
|
||||||
int ProcedureCall::emit(ostream&out, Entity*ent, ScopeBase*scope)
|
int ProcedureCall::emit(ostream&out, Entity*ent, ScopeBase*scope)
|
||||||
{
|
{
|
||||||
int errors = 0;
|
int errors = 0;
|
||||||
|
std::vector<Expression*>params;
|
||||||
|
|
||||||
std::vector<Expression*>params(param_list_->size());
|
if(param_list_) {
|
||||||
int i = 0;
|
params.reserve(param_list_->size());
|
||||||
for(std::list<named_expr_t*>::iterator it = param_list_->begin();
|
|
||||||
it != param_list_->end(); ++it)
|
for(std::list<named_expr_t*>::iterator it = param_list_->begin();
|
||||||
params[i++] = (*it)->expr();
|
it != param_list_->end(); ++it)
|
||||||
|
params.push_back((*it)->expr());
|
||||||
|
}
|
||||||
|
|
||||||
const Package*pkg = dynamic_cast<const Package*> (def_->get_parent());
|
const Package*pkg = dynamic_cast<const Package*> (def_->get_parent());
|
||||||
if (pkg != 0)
|
if (pkg != 0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue