IntegerValType holds a uint32_t, so its constructor should take a uint32_t. This...
authorKenneth Uildriks <kennethuil@gmail.com>
Wed, 10 Feb 2010 00:14:03 +0000 (00:14 +0000)
committerKenneth Uildriks <kennethuil@gmail.com>
Wed, 10 Feb 2010 00:14:03 +0000 (00:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95731 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/TypesContext.h

index 7419b0e894558777c20072dbd97c27ea567187f3..484284551fa794bd5a3e1011f5c07aaf9cbf1e5c 100644 (file)
@@ -68,7 +68,7 @@ static unsigned getSubElementHash(const Type *Ty) {
 class IntegerValType {
   uint32_t bits;
 public:
-  IntegerValType(uint16_t numbits) : bits(numbits) {}
+  IntegerValType(uint32_t numbits) : bits(numbits) {}
 
   static IntegerValType get(const IntegerType *Ty) {
     return IntegerValType(Ty->getBitWidth());