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)
llvm-svn: 265782

clang/lib/CodeGen/SwiftCallingConv.cpp

index ffb305f..6c20f8c 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);