diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-04 20:14:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-04 20:14:29 +0000 |
commit | 071f2f13b62d9b1a7b23af4106c61f39b29ca9fc (patch) | |
tree | 57840686dc6f76c3c9271ea5ba89e4ebfc6e54f9 /lib/VMCore | |
parent | c285da73a4df1ad74dfc842ab871f7e14398d5ac (diff) | |
download | external_llvm-071f2f13b62d9b1a7b23af4106c61f39b29ca9fc.zip external_llvm-071f2f13b62d9b1a7b23af4106c61f39b29ca9fc.tar.gz external_llvm-071f2f13b62d9b1a7b23af4106c61f39b29ca9fc.tar.bz2 |
Squish a warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14020 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index 6465944..9d98bd9 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -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]; } |