vhdlpp: Fixed crash on unassociated generics.
This commit is contained in:
parent
807ad8002d
commit
295e4e7dfb
|
|
@ -92,6 +92,7 @@ int Entity::elaborate_generic_exprs_()
|
|||
for (vector<InterfacePort*>::const_iterator cur = parms_.begin()
|
||||
; cur != parms_.end() ; ++cur) {
|
||||
InterfacePort*curp = *cur;
|
||||
if(curp->expr)
|
||||
curp->expr->elaborate_expr(this, 0, curp->type);
|
||||
}
|
||||
return errors;
|
||||
|
|
|
|||
|
|
@ -50,10 +50,12 @@ int Entity::emit(ostream&out)
|
|||
const InterfacePort*curp = *cur;
|
||||
if (cur != parms_.begin())
|
||||
out << ", ";
|
||||
out << "parameter \\" << curp->name << " = ";
|
||||
ivl_assert(*this, curp->expr);
|
||||
out << "parameter \\" << curp->name << " ";
|
||||
if(curp->expr) {
|
||||
out << "= ";
|
||||
errors += curp->expr->emit(out, this, 0);
|
||||
}
|
||||
}
|
||||
out << ") ";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue