mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
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:
@@ -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];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user