From: Reid Kleckner Date: Fri, 25 Jan 2013 15:35:56 +0000 (+0000) Subject: Fix MSVC 2012 warning about a 32-bit shift that should be 64-bit X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8978e927513caeb742281c9841fa30c36032ae40;p=platform%2Fupstream%2Fllvm.git Fix MSVC 2012 warning about a 32-bit shift that should be 64-bit llvm-svn: 173454 --- diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index 8ee7057..cbbf484 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,