Author: rksimon Date: Thu Oct 3 08:10:47 2019 New Revision: 373613 URL: http://llvm.org/viewvc/llvm-project?rev=373613&view=rev Log: Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFCI.
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=373613&r1=373612&r2=373613&view=diff ============================================================================== --- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original) +++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Thu Oct 3 08:10:47 2019 @@ -1600,7 +1600,7 @@ void CodeGenModule::SetLLVMFunctionAttri if (!D->hasAttr<AlignedAttr>()) if (LangOpts.FunctionAlignment) - F->setAlignment(llvm::Align(1 << LangOpts.FunctionAlignment)); + F->setAlignment(llvm::Align(1ull << LangOpts.FunctionAlignment)); // Some C++ ABIs require 2-byte alignment for member functions, in order to // reserve a bit for differentiating between virtual and non-virtual member _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits