diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-28 23:17:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-28 23:17:27 +0000 |
commit | f4aa3351de8c997cef7a33e6946c6083e425618b (patch) | |
tree | 1e84cf804bdcdd657a8561390036be8ed4b7b707 /lib/VMCore/ConstantFold.cpp | |
parent | 99939d39c9555ebecbcd24c1b607eae52804ea37 (diff) |
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
Diffstat (limited to 'lib/VMCore/ConstantFold.cpp')
-rw-r--r-- | lib/VMCore/ConstantFold.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/ConstantFold.cpp b/lib/VMCore/ConstantFold.cpp index dd947404ce..772b79a29a 100644 --- a/lib/VMCore/ConstantFold.cpp +++ b/lib/VMCore/ConstantFold.cpp @@ -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)) { |