]> granicus.if.org Git - clang/commitdiff
Silencing a 32-bit shift implicit conversion warning from MSVC; NFC.
authorAaron Ballman <aaron@aaronballman.com>
Fri, 8 Apr 2016 12:21:58 +0000 (12:21 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 8 Apr 2016 12:21:58 +0000 (12:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265782 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SwiftCallingConv.cpp

index ffb305f93166a6199b4b2e76faef6411e2be3d96..6c20f8c9d3e925da66a7227172f66938f7783f62 100644 (file)
@@ -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);