diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index b9013a8667..50b74f31fa 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -349,8 +349,8 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D, if (const AlignedAttr *AA = D->getAttr()) F->setAlignment(AA->getAlignment()/8); // C++ ABI requires 2-byte alignment for member functions. - if (F->getAlignment() < 16 && isa(D)) - F->setAlignment(16/8); + if (F->getAlignment() < 2 && isa(D)) + F->setAlignment(2); } void CodeGenModule::SetCommonAttributes(const Decl *D,