summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2016-04-08 12:21:58 +0000
committerAaron Ballman <aaron@aaronballman.com>2016-04-08 12:21:58 +0000
commit829b5d42af932f2320a1677393e5f82fb924aca9 (patch)
treeaf792083d80912638e1009f693fe9e0dec0f1b9b /clang/lib
parent98c1894755c87fc1c42b2152fdb4e064a8b89f1e (diff)
downloadbcm5719-llvm-829b5d42af932f2320a1677393e5f82fb924aca9.tar.gz
bcm5719-llvm-829b5d42af932f2320a1677393e5f82fb924aca9.zip
Silencing a 32-bit shift implicit conversion warning from MSVC; NFC.
llvm-svn: 265782
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/SwiftCallingConv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/SwiftCallingConv.cpp b/clang/lib/CodeGen/SwiftCallingConv.cpp
index ffb305f9316..6c20f8c9d3e 100644
--- 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 = 1ULL << (llvm::findLastSet(size, llvm::ZB_Undefined) + 1);
}
assert(size >= CGM.getDataLayout().getABITypeAlignment(type));
return CharUnits::fromQuantity(size);
OpenPOWER on IntegriCloud