[llvm-commits] CVS: llvm/lib/VMCore/ConstantFolding.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Jan 28 15:17:42 PST 2005



Changes in directory llvm/lib/VMCore:

ConstantFolding.cpp updated: 1.71 -> 1.72
---
Log message:

Fix a nasty thinko in my previous commit.


---
Diffs of the changes:  (+1 -1)

 ConstantFolding.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/VMCore/ConstantFolding.cpp
diff -u llvm/lib/VMCore/ConstantFolding.cpp:1.71 llvm/lib/VMCore/ConstantFolding.cpp:1.72
--- llvm/lib/VMCore/ConstantFolding.cpp:1.71	Fri Jan 28 13:09:51 2005
+++ llvm/lib/VMCore/ConstantFolding.cpp	Fri Jan 28 17:17:27 2005
@@ -631,7 +631,7 @@
 
     // 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)) {






More information about the llvm-commits mailing list