[llvm-commits] llvm-gcc4: small cleanup

Duncan Sands baldrick at free.fr
Fri Jan 26 10:24:40 PST 2007


Index: gcc.llvm.master/gcc/llvm-convert.cpp
===================================================================
--- gcc.llvm.master.orig/gcc/llvm-convert.cpp	2007-01-26 19:11:47.000000000 +0100
+++ gcc.llvm.master/gcc/llvm-convert.cpp	2007-01-26 19:14:23.000000000 +0100
@@ -4075,8 +4075,6 @@
   //tree ElementSizeInBytes = array_ref_element_size(exp);
   
   if (IndexVal->getType() != Type::Int32Ty &&
-      IndexVal->getType() != Type::Int32Ty && 
-      IndexVal->getType() != Type::Int64Ty && 
       IndexVal->getType() != Type::Int64Ty)
     if (TYPE_UNSIGNED(TREE_TYPE(Index))) // if the index is unsigned
       // ZExt it to retain its value in the larger type



More information about the llvm-commits mailing list