Fix MSVC 2012 warning about a 32-bit shift that should be 64-bit
llvm-svn: 173454
This commit is contained in:
parent
2cb0fa10c2
commit
8978e92751
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue