Apply 'make format'
This commit is contained in:
parent
4babba16d6
commit
962efa3691
|
|
@ -903,10 +903,8 @@ std::pair<uint32_t, uint32_t> AstNodeDType::dimensions(bool includeBasic) {
|
||||||
}
|
}
|
||||||
dtypep = adtypep->subDTypep();
|
dtypep = adtypep->subDTypep();
|
||||||
continue;
|
continue;
|
||||||
} else if (VN_IS(dtypep, QueueDType)
|
} else if (VN_IS(dtypep, QueueDType) || VN_IS(dtypep, DynArrayDType)
|
||||||
|| VN_IS(dtypep, DynArrayDType)
|
|| VN_IS(dtypep, AssocArrayDType) || VN_IS(dtypep, WildcardArrayDType)) {
|
||||||
|| VN_IS(dtypep, AssocArrayDType)
|
|
||||||
|| VN_IS(dtypep, WildcardArrayDType)) {
|
|
||||||
unpacked++;
|
unpacked++;
|
||||||
dtypep = dtypep->subDTypep();
|
dtypep = dtypep->subDTypep();
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
|
|
@ -1528,8 +1528,7 @@ class WidthVisitor final : public VNVisitor {
|
||||||
case VAttrType::DIM_SIZE: {
|
case VAttrType::DIM_SIZE: {
|
||||||
UASSERT_OBJ(nodep->fromp() && nodep->fromp()->dtypep(), nodep, "Unsized expression");
|
UASSERT_OBJ(nodep->fromp() && nodep->fromp()->dtypep(), nodep, "Unsized expression");
|
||||||
AstNodeDType* const dtypep = nodep->fromp()->dtypep();
|
AstNodeDType* const dtypep = nodep->fromp()->dtypep();
|
||||||
if (VN_IS(dtypep, QueueDType)
|
if (VN_IS(dtypep, QueueDType) || VN_IS(dtypep, DynArrayDType)) {
|
||||||
|| VN_IS(dtypep, DynArrayDType)) {
|
|
||||||
switch (nodep->attrType()) {
|
switch (nodep->attrType()) {
|
||||||
case VAttrType::DIM_SIZE: {
|
case VAttrType::DIM_SIZE: {
|
||||||
AstNodeExpr* const fromp = VN_AS(nodep->fromp()->unlinkFrBack(), NodeExpr);
|
AstNodeExpr* const fromp = VN_AS(nodep->fromp()->unlinkFrBack(), NodeExpr);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue