try to fix seg fault when generating netlist
This commit is contained in:
parent
c4edb215fa
commit
a3cb1774f4
|
@ -728,6 +728,8 @@ static void EraseDuplicatePins( NETLIST_OBJECT_LIST& aPinList )
|
||||||
int idxref = ii;
|
int idxref = ii;
|
||||||
for( unsigned jj = ii + 1; jj < aPinList.size(); jj++ )
|
for( unsigned jj = ii + 1; jj < aPinList.size(); jj++ )
|
||||||
{
|
{
|
||||||
|
if ( aPinList[jj] == NULL ) // Already removed
|
||||||
|
continue;
|
||||||
if( aPinList[idxref]->m_PinNum != aPinList[jj]->m_PinNum )
|
if( aPinList[idxref]->m_PinNum != aPinList[jj]->m_PinNum )
|
||||||
break;
|
break;
|
||||||
if ( aPinList[idxref]->m_FlagOfConnection == PAD_CONNECT )
|
if ( aPinList[idxref]->m_FlagOfConnection == PAD_CONNECT )
|
||||||
|
|
Loading…
Reference in New Issue