From 3054b36a8d0b468030c08b5bdba39315ad004851 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 17 Dec 2017 12:53:22 -0500 Subject: [PATCH] Internals: Avoid cleaning arrays in prep for openarrays. --- src/V3Clean.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/V3Clean.cpp b/src/V3Clean.cpp index bc239e0c7..bf7b7ae90 100644 --- a/src/V3Clean.cpp +++ b/src/V3Clean.cpp @@ -90,7 +90,8 @@ private: } void computeCppWidth (AstNode* nodep) { if (!nodep->user2() && nodep->hasDType()) { - if (nodep->castVar() || nodep->castNodeDType()) { // Don't want to change variable widths! + if (nodep->castVar() || nodep->castNodeDType() // Don't want to change variable widths! + || nodep->dtypep()->skipRefp()->castUnpackArrayDType()) { // Or arrays } else { setCppWidth(nodep); }