diff options
author | Kenneth Uildriks <kennethuil@gmail.com> | 2010-02-10 00:14:03 +0000 |
---|---|---|
committer | Kenneth Uildriks <kennethuil@gmail.com> | 2010-02-10 00:14:03 +0000 |
commit | f1f505f85c924c84391f4c4992fbfca56bfc8254 (patch) | |
tree | 0265474d9ad905750c8be16b566d224a0bfac3fb | |
parent | 10fedd21d3d5e9527b13e38addd7002da2c1dc61 (diff) |
IntegerValType holds a uint32_t, so its constructor should take a uint32_t. This allows it to be properly initialized with bit widths > 65535
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95731 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/TypesContext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/TypesContext.h b/lib/VMCore/TypesContext.h index 7419b0e894..484284551f 100644 --- a/lib/VMCore/TypesContext.h +++ b/lib/VMCore/TypesContext.h @@ -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()); |