r265782 - Silencing a 32-bit shift implicit conversion warning from MSVC; NFC.

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 8 05:21:58 PDT 2016


Author: aaronballman
Date: Fri Apr  8 07:21:58 2016
New Revision: 265782

URL: http://llvm.org/viewvc/llvm-project?rev=265782&view=rev
Log:
Silencing a 32-bit shift implicit conversion warning from MSVC; NFC.

Modified:
    cfe/trunk/lib/CodeGen/SwiftCallingConv.cpp

Modified: cfe/trunk/lib/CodeGen/SwiftCallingConv.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/SwiftCallingConv.cpp?rev=265782&r1=265781&r2=265782&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/SwiftCallingConv.cpp (original)
+++ cfe/trunk/lib/CodeGen/SwiftCallingConv.cpp Fri Apr  8 07:21:58 2016
@@ -603,7 +603,7 @@ CharUnits swiftcall::getNaturalAlignment
   // 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);




More information about the cfe-commits mailing list