delede unusedd variable declaration

This commit is contained in:
Yutetsu TAKATSUKASA 2020-01-09 07:28:01 +09:00
parent 5204b50111
commit 50324a178e
1 changed files with 4 additions and 7 deletions

View File

@ -308,13 +308,10 @@ public:
// Even if this function returns true, the variable may not be split
// because the access to the variable cannot be determined statically.
static bool canSplit(const AstVar* nodep) {
if (AstNodeDType* dtypep = nodep->subDTypep()) {
const std::pair<uint32_t, uint32_t> dim = nodep->dtypep()->dimensions(false);
// Traced or public variable cannot be split.
// at least one unpacked dimension must exist
return dim.second >= 1 && !nodep->isSigPublic();
}
return false;
const std::pair<uint32_t, uint32_t> dim = nodep->dtypep()->dimensions(false);
// Public variable cannot be split.
// at least one unpacked dimension must exist
return dim.second >= 1 && !nodep->isSigPublic();
}
};