mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-27 06:35:30 +00: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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95731 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
10fedd21d3
commit
f1f505f85c
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user