mirror of
https://github.com/verilator/verilator.git
synced 2026-09-03 08:24:31 +02:00
Fix nested class split crash (#7826)
Signed-off-by: Igor Zaworski <[email protected]>
This commit is contained in:
+7
-1
@@ -477,7 +477,13 @@ class SplitUnpackedVarVisitor final : public VNVisitor, public SplitVarImpl {
|
||||
UINFO(4, "Start checking " << nodep->prettyNameQ());
|
||||
if (!VN_IS(nodep, Module)) {
|
||||
UINFO(4, "Skip " << nodep->prettyNameQ());
|
||||
nodep->foreach([this](AstVarXRef* const nodep) { handleVarXRef(nodep); });
|
||||
nodep->foreach([this](AstNodeVarRef* const nodep) {
|
||||
if (AstVarXRef* const varXRefp = VN_CAST(nodep, VarXRef)) {
|
||||
handleVarXRef(varXRefp);
|
||||
} else if (m_modp) {
|
||||
iterate(VN_AS(nodep, VarRef));
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
UASSERT_OBJ(!m_modp, m_modp, "Nested module declaration");
|
||||
|
||||
Reference in New Issue
Block a user