[cfe-commits] r83342 - /cfe/trunk/lib/CodeGen/CodeGenModule.cpp

Mike Stump mrs at apple.com
Mon Oct 5 16:08:21 PDT 2009


Author: mrs
Date: Mon Oct  5 18:08:21 2009
New Revision: 83342

URL: http://llvm.org/viewvc/llvm-project?rev=83342&view=rev
Log:
Fix thinko and simplify.

Modified:
    cfe/trunk/lib/CodeGen/CodeGenModule.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=83342&r1=83341&r2=83342&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Mon Oct  5 18:08:21 2009
@@ -349,8 +349,8 @@
   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,





More information about the cfe-commits mailing list