aboutsummaryrefslogtreecommitdiffstats
path: root/lib/IR
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2013-01-25 15:35:56 +0000
committerReid Kleckner <reid@kleckner.net>2013-01-25 15:35:56 +0000
commitf86c9321fc8088a021598df0265c5fd00ab4170d (patch)
treee5c0a89bd5837f51b979c8206e72d7d810819bf8 /lib/IR
parent94d1f5b10cbc65d12fc8eb46fd36a2f407cf4a35 (diff)
downloadexternal_llvm-f86c9321fc8088a021598df0265c5fd00ab4170d.zip
external_llvm-f86c9321fc8088a021598df0265c5fd00ab4170d.tar.gz
external_llvm-f86c9321fc8088a021598df0265c5fd00ab4170d.tar.bz2
Fix MSVC 2012 warning about a 32-bit shift that should be 64-bit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173454 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR')
-rw-r--r--lib/IR/Attributes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/IR/Attributes.cpp b/lib/IR/Attributes.cpp
index 8ee7057..cbbf484 100644
--- a/lib/IR/Attributes.cpp
+++ b/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,