Fix class stringification on wide arrays (#3312).

This commit is contained in:
Wilson Snyder
2022-03-05 16:32:30 -05:00
parent c3dd6f5344
commit 4ba3bff87f
4 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ static void makeToStringMiddle(AstClass* nodep) {
comma = ", ";
stmt += itemp->origNameProtect();
stmt += ":\" + ";
if (itemp->isWide()) {
if (VN_IS(itemp->dtypep()->skipRefp(), BasicDType) && itemp->isWide()) {
stmt += "VL_TO_STRING_W(";
stmt += cvtToStr(itemp->widthWords());
stmt += ", ";