summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
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
commit916c00673572f8632c3cb6d085dd16b5dd5271dc (patch)
treede0fc408828f7b7bea0f8d5c1df7cd38b0d1f335 /clang/lib/CodeGen/CodeGenModule.cpp
parent655314ef95de59647e449d4df017703896731cfd (diff)
downloadbcm5719-llvm-916c00673572f8632c3cb6d085dd16b5dd5271dc.tar.gz
bcm5719-llvm-916c00673572f8632c3cb6d085dd16b5dd5271dc.zip
Fix thinko and simplify.
llvm-svn: 83342
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index b9013a8667c..50b74f31fae 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<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,
OpenPOWER on IntegriCloud