[llvm-commits] CVS: llvm/lib/VMCore/Type.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Jun 4 15:19:01 PDT 2004
Changes in directory llvm/lib/VMCore:
Type.cpp updated: 1.100 -> 1.101
---
Log message:
Squish a warning
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/VMCore/Type.cpp
diff -u llvm/lib/VMCore/Type.cpp:1.100 llvm/lib/VMCore/Type.cpp:1.101
--- llvm/lib/VMCore/Type.cpp:1.100 Fri May 28 00:40:19 2004
+++ llvm/lib/VMCore/Type.cpp Fri Jun 4 15:14:29 2004
@@ -305,7 +305,7 @@
//
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];
}
More information about the llvm-commits
mailing list