mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-10 22:00:58 +00:00
Squish a warning
llvm-svn: 14020
This commit is contained in:
parent
db1b83334e
commit
4bd463c15e
@ -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…
x
Reference in New Issue
Block a user