Fix const correctness

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10229 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-11-25 21:28:00 +00:00
parent b9da9c137d
commit d85cbe8f69

View File

@ -262,7 +262,7 @@ const std::string &Type::getDescription() const {
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;
}