From 916c00673572f8632c3cb6d085dd16b5dd5271dc Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Mon, 5 Oct 2009 23:08:21 +0000 Subject: Fix thinko and simplify. llvm-svn: 83342 --- clang/lib/CodeGen/CodeGenModule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index b9013a8..50b74f3 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/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, -- cgit v1.1