aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-10-05 23:08:21 +0000
committerMike Stump <mrs@apple.com>2009-10-05 23:08:21 +0000
commitbd6dbd19781cefd5b5ff9750c8bf86e6c341a68c (patch)
tree0b4f19b06b8fbc60fbaebedbc6f2976e3b2552fd /lib/CodeGen
parentfb51ddfafcd5f8536d0312b3daa3c0b74b90ab5b (diff)
Fix thinko and simplify.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83342 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/CodeGenModule.cpp4
1 files changed, 2 insertions, 2 deletions
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<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,