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