Fixed vhdlpp segfault if it processes an entity without any ports declared.
This commit is contained in:
parent
6a2956c672
commit
66d31b02be
|
|
@ -47,9 +47,12 @@ void ComponentBase::set_interface(std::list<InterfacePort*>*parms,
|
|||
parms->pop_front();
|
||||
}
|
||||
}
|
||||
while (! ports->empty()) {
|
||||
ports_.push_back(ports->front());
|
||||
ports->pop_front();
|
||||
|
||||
if (ports) {
|
||||
while (! ports->empty()) {
|
||||
ports_.push_back(ports->front());
|
||||
ports->pop_front();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue