summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Uildriks <kennethuil@gmail.com>2010-02-10 00:14:03 +0000
committerKenneth Uildriks <kennethuil@gmail.com>2010-02-10 00:14:03 +0000
commit08f618cd031c7cc70e7f63711efc748d3bb8f36c (patch)
treec021a1c5d46e0ffdd8b7b03373b09043185d80c6
parent3d1f1cccbb17e25f55195badc651558d17b8841b (diff)
downloadbcm5719-llvm-08f618cd031c7cc70e7f63711efc748d3bb8f36c.tar.gz
bcm5719-llvm-08f618cd031c7cc70e7f63711efc748d3bb8f36c.zip
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
-rw-r--r--llvm/lib/VMCore/TypesContext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/TypesContext.h b/llvm/lib/VMCore/TypesContext.h
index 7419b0e8945..484284551fa 100644
--- a/llvm/lib/VMCore/TypesContext.h
+++ b/llvm/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());
OpenPOWER on IntegriCloud