mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 20:32:19 +00:00
Fix a nasty thinko in my previous commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19881 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
99939d39c9
commit
f4aa3351de
@ -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
Block a user