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

Chris Lattner lattner at cs.uiuc.edu
Tue Nov 25 15:29:01 PST 2003


Changes in directory llvm/lib/VMCore:

Type.cpp updated: 1.84 -> 1.85

---
Log message:

Fix const correctness


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

Index: llvm/lib/VMCore/Type.cpp
diff -u llvm/lib/VMCore/Type.cpp:1.84 llvm/lib/VMCore/Type.cpp:1.85
--- llvm/lib/VMCore/Type.cpp:1.84	Tue Nov 25 15:21:46 2003
+++ llvm/lib/VMCore/Type.cpp	Tue Nov 25 15:28:00 2003
@@ -262,7 +262,7 @@
 
 bool StructType::indexValid(const Value *V) const {
   // Structure indexes require unsigned integer constants.
-  if (ConstantUInt *CU = dyn_cast<ConstantUInt>(V))
+  if (const ConstantUInt *CU = dyn_cast<ConstantUInt>(V))
     return CU->getValue() < ETypes.size();
   return false;
 }





More information about the llvm-commits mailing list