mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Internals: Fix same() called outside of sameTree (#4561).
This commit is contained in:
+1
-1
@@ -135,7 +135,7 @@ class SliceVisitor final : public VNVisitor {
|
||||
const AstUnpackArrayDType* const itemDTypep
|
||||
= VN_CAST(itemRawDTypep, UnpackArrayDType);
|
||||
if (!itemDTypep
|
||||
|| !expectedItemDTypep->same(itemDTypep->subDTypep()->skipRefp())) {
|
||||
|| !expectedItemDTypep->isSame(itemDTypep->subDTypep()->skipRefp())) {
|
||||
if (!m_assignError) {
|
||||
itemp->v3error("Item is incompatible with the array type.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user