]> granicus.if.org Git - clang/commitdiff
Fix thinko and simplify.
authorMike Stump <mrs@apple.com>
Mon, 5 Oct 2009 23:08:21 +0000 (23:08 +0000)
committerMike Stump <mrs@apple.com>
Mon, 5 Oct 2009 23:08:21 +0000 (23:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83342 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenModule.cpp

index b9013a8667c4dab207d7508c298f3dbbab439b04..50b74f31fae5df9f63ad2d687bb5a2549e48ba39 100644 (file)
@@ -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,