projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cb0fa1
)
Fix MSVC 2012 warning about a 32-bit shift that should be 64-bit
author
Reid Kleckner
<reid@kleckner.net>
Fri, 25 Jan 2013 15:35:56 +0000
(15:35 +0000)
committer
Reid Kleckner
<reid@kleckner.net>
Fri, 25 Jan 2013 15:35:56 +0000
(15:35 +0000)
llvm-svn: 173454
llvm/lib/IR/Attributes.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/Attributes.cpp
b/llvm/lib/IR/Attributes.cpp
index
8ee7057
..
cbbf484
100644
(file)
--- 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 1U
LL
<< ((Mask >> 16) - 1);
}
uint64_t AttributeImpl::getStackAlignment() const {
uint64_t Mask = Raw() & getAttrMask(Attribute::StackAlignment);
- return 1U << ((Mask >> 26) - 1);
+ return 1U
LL
<< ((Mask >> 26) - 1);
}
void AttributeImpl::Profile(FoldingSetNodeID &ID, Constant *Data,