forked from OSchip/llvm-project
parent
655314ef95
commit
916c006735
|
@ -349,8 +349,8 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D,
|
|||
if (const AlignedAttr *AA = D->getAttr<AlignedAttr>())
|
||||
F->setAlignment(AA->getAlignment()/8);
|
||||
// C++ ABI requires 2-byte alignment for member functions.
|
||||
if (F->getAlignment() < 16 && isa<CXXMethodDecl>(D))
|
||||
F->setAlignment(16/8);
|
||||
if (F->getAlignment() < 2 && isa<CXXMethodDecl>(D))
|
||||
F->setAlignment(2);
|
||||
}
|
||||
|
||||
void CodeGenModule::SetCommonAttributes(const Decl *D,
|
||||
|
|
Loading…
Reference in New Issue