Fix a nasty thinko in my previous commit.

llvm-svn: 19881
This commit is contained in:
Chris Lattner 2005-01-28 23:17:27 +00:00
parent bc7497d5f5
commit feaf92f7ad
1 changed files with 1 additions and 1 deletions

View File

@ -631,7 +631,7 @@ static bool isMaybeZeroSizedType(const Type *Ty) {
// If all of elements have zero size, this does too.
for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i)
if (!isMaybeZeroSizedType(Ty)) return false;
if (!isMaybeZeroSizedType(STy->getElementType(i))) return false;
return true;
} else if (const ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {