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:
98c1894
)
Silencing a 32-bit shift implicit conversion warning from MSVC; NFC.
author
Aaron Ballman
<aaron@aaronballman.com>
Fri, 8 Apr 2016 12:21:58 +0000
(12:21 +0000)
committer
Aaron Ballman
<aaron@aaronballman.com>
Fri, 8 Apr 2016 12:21:58 +0000
(12:21 +0000)
llvm-svn: 265782
clang/lib/CodeGen/SwiftCallingConv.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/SwiftCallingConv.cpp
b/clang/lib/CodeGen/SwiftCallingConv.cpp
index
ffb305f
..
6c20f8c
100644
(file)
--- a/
clang/lib/CodeGen/SwiftCallingConv.cpp
+++ b/
clang/lib/CodeGen/SwiftCallingConv.cpp
@@
-603,7
+603,7
@@
CharUnits swiftcall::getNaturalAlignment(CodeGenModule &CGM, llvm::Type *type) {
// rounded up to a power of 2.
auto size = (unsigned long long) getTypeStoreSize(CGM, type).getQuantity();
if (!isPowerOf2(size)) {
- size = 1U << (llvm::findLastSet(size, llvm::ZB_Undefined) + 1);
+ size = 1U
LL
<< (llvm::findLastSet(size, llvm::ZB_Undefined) + 1);
}
assert(size >= CGM.getDataLayout().getABITypeAlignment(type));
return CharUnits::fromQuantity(size);