forked from OSchip/llvm-project
Fix a nasty thinko in my previous commit.
llvm-svn: 19881
This commit is contained in:
parent
bc7497d5f5
commit
feaf92f7ad
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue