Переглянути джерело

Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFCI.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373613 91177308-0d34-0410-b5e6-96231b3b80d8
Simon Pilgrim 5 роки тому
батько
коміт
c0fc42a970
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      lib/CodeGen/CodeGenModule.cpp

+ 1 - 1
lib/CodeGen/CodeGenModule.cpp

@@ -1600,7 +1600,7 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D,
 
 
   if (!D->hasAttr<AlignedAttr>())
   if (!D->hasAttr<AlignedAttr>())
     if (LangOpts.FunctionAlignment)
     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
   // Some C++ ABIs require 2-byte alignment for member functions, in order to
   // reserve a bit for differentiating between virtual and non-virtual member
   // reserve a bit for differentiating between virtual and non-virtual member