projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c285da7
)
Squish a warning
author
Chris Lattner
<sabre@nondot.org>
Fri, 4 Jun 2004 20:14:29 +0000
(20:14 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 4 Jun 2004 20:14:29 +0000
(20:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14020
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Type.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Type.cpp
b/lib/VMCore/Type.cpp
index 6465944272240b98dbebcb907c08c91757ae6c86..9d98bd9f1ac02827322ad6cdd9343b072f775e36 100644
(file)
--- 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];
}