diff options
author | Reid Kleckner <reid@kleckner.net> | 2013-01-25 15:35:56 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2013-01-25 15:35:56 +0000 |
commit | 8978e927513caeb742281c9841fa30c36032ae40 (patch) | |
tree | 531f606787da0d2c2d1102041c835f09c5fbead5 /llvm/lib/IR/Attributes.cpp | |
parent | 2cb0fa10c2cbf617d680c6852417d5b9622c7606 (diff) | |
download | bcm5719-llvm-8978e927513caeb742281c9841fa30c36032ae40.tar.gz bcm5719-llvm-8978e927513caeb742281c9841fa30c36032ae40.zip |
Fix MSVC 2012 warning about a 32-bit shift that should be 64-bit
llvm-svn: 173454
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index 8ee7057c196..cbbf4848f6d 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -524,12 +524,12 @@ bool AttributeImpl::hasAttributes() const { uint64_t AttributeImpl::getAlignment() const { uint64_t Mask = Raw() & getAttrMask(Attribute::Alignment); - return 1U << ((Mask >> 16) - 1); + return 1ULL << ((Mask >> 16) - 1); } uint64_t AttributeImpl::getStackAlignment() const { uint64_t Mask = Raw() & getAttrMask(Attribute::StackAlignment); - return 1U << ((Mask >> 26) - 1); + return 1ULL << ((Mask >> 26) - 1); } void AttributeImpl::Profile(FoldingSetNodeID &ID, Constant *Data, |