Fix UNDRIVEN warning seg fault (#3989)

This commit is contained in:
Felix Neumärker
2023-03-03 18:54:38 -05:00
committed by Wilson Snyder
parent 3fc684359a
commit 12728bc478
3 changed files with 25 additions and 1 deletions
+2 -1
View File
@@ -408,7 +408,8 @@ private:
}
if (entryp->isDrivenWhole() && !m_inBBox && !VN_IS(nodep, VarXRef)
&& !VN_IS(nodep->dtypep()->skipRefp(), UnpackArrayDType)
&& nodep->fileline() != entryp->getNodeFileLinep() && !entryp->isUnderGen()) {
&& nodep->fileline() != entryp->getNodeFileLinep() && !entryp->isUnderGen()
&& entryp->getNodep()) {
if (m_alwaysCombp
&& (!entryp->isDrivenAlwaysCombWhole()
|| (entryp->isDrivenAlwaysCombWhole()