mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +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:
parent
c285da73a4
commit
071f2f13b6
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user