From: Aaron Ballman Date: Fri, 8 Apr 2016 12:21:58 +0000 (+0000) Subject: Silencing a 32-bit shift implicit conversion warning from MSVC; NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a11bf9d2c0c18571d7edaea852279d7681f19845;p=clang Silencing a 32-bit shift implicit conversion warning from MSVC; NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265782 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SwiftCallingConv.cpp b/lib/CodeGen/SwiftCallingConv.cpp index ffb305f931..6c20f8c9d3 100644 --- a/lib/CodeGen/SwiftCallingConv.cpp +++ b/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);