Internals: Add sameGateTree.

This commit is contained in:
Wilson Snyder
2014-11-02 19:52:49 -05:00
parent cf6d07aafa
commit 8bfb5cc5e9
6 changed files with 73 additions and 36 deletions
+1 -1
View File
@@ -353,7 +353,7 @@ private:
== var2p->dtypep()->arrayUnpackedElements())) {
AstNode* init1p = var1p->valuep()->castInitArray();
AstNode* init2p = var2p->valuep()->castInitArray();
if (init1p->sameTree(init2p)) {
if (init1p->sameGateTree(init2p)) {
UINFO(8," Duplicate table var "<<vsc2p<<" == "<<vsc1p<<endl);
vsc1p->unlinkFrBack()->deleteTree();
return vsc2p;