Internals: Move dimension accessors from AstVar to AstNodeDType.

This commit is contained in:
Wilson Snyder
2012-02-28 21:33:17 -05:00
parent f540362e36
commit e6244ca204
11 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -345,7 +345,7 @@ private:
AstVarScope* vsc2p= *it;
AstVar* var2p = vsc2p->varp();
if (var1p->width() == var2p->width()
&& var1p->arrayElements() == var2p->arrayElements()) {
&& var1p->dtypep()->arrayElements() == var2p->dtypep()->arrayElements()) {
AstNode* init1p = var1p->valuep()->castInitArray();
AstNode* init2p = var2p->valuep()->castInitArray();
if (init1p->sameTree(init2p)) {