1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

IntegerValType holds a uint32_t, so its constructor should take a uint32_t. This allows it to be properly initialized with bit widths > 65535

llvm-svn: 95731
This commit is contained in:
Kenneth Uildriks 2010-02-10 00:14:03 +00:00
parent c9f253214e
commit d9026b3fa4

View 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());