Internals: Avoid cleaning arrays in prep for openarrays.

This commit is contained in:
Wilson Snyder 2017-12-17 12:53:22 -05:00
parent b888158907
commit 3054b36a8d

View File

@ -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);
}