Squish a warning

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14020 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-06-04 20:14:29 +00:00
parent c285da73a4
commit 071f2f13b6

View File

@ -305,7 +305,7 @@ bool StructType::indexValid(const Value *V) const {
//
const Type *StructType::getTypeAtIndex(const Value *V) const {
assert(indexValid(V) && "Invalid structure index!");
unsigned Idx = cast<ConstantUInt>(V)->getValue();
unsigned Idx = (unsigned)cast<ConstantUInt>(V)->getValue();
return ContainedTys[Idx];
}