Преглед изворни кода

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 (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