Fix stream expressions (#5938)

This commit is contained in:
Ryszard Rozak
2025-04-15 11:50:43 -04:00
committed by GitHub
parent e3e8f18a4e
commit 6a6a7b7e9f
5 changed files with 167 additions and 4 deletions
+2
View File
@@ -120,6 +120,8 @@ public:
if (!m_varp->isWide() && !m_whole.m_complex && m_whole.m_assignp && !m_wordAssign) {
const AstNodeAssign* const assp = m_whole.m_assignp;
UASSERT_OBJ(assp, errp, "Reading whole that was never assigned");
// AstCvtPackedToArray can't be anywhere else than on the RHS of assignment
if (VN_IS(assp->rhsp(), CvtPackedToArray)) return nullptr;
return assp->rhsp();
} else {
return nullptr;