[cfe-commits] r81620 - /cfe/trunk/lib/CodeGen/CGDecl.cpp

Mike Stump mrs at apple.com
Sat Sep 12 11:58:29 PDT 2009


Author: mrs
Date: Sat Sep 12 13:58:28 2009
New Revision: 81620

URL: http://llvm.org/viewvc/llvm-project?rev=81620&view=rev
Log:
Add FIXME for alignments that won't be honored.

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

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

==============================================================================
--- cfe/trunk/lib/CodeGen/CGDecl.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDecl.cpp Sat Sep 12 13:58:28 2009
@@ -273,6 +273,8 @@
     assert(NumPaddingBytes > 0 && "Can't append any padding!");
     
     const llvm::Type *Ty = llvm::Type::getInt8Ty(VMContext);
+    // FIXME: We need a sema error for alignment larger than the minimum of the
+    // maximal stack alignmint and the alignment of malloc on the system.
     if (NumPaddingBytes > 1)
       Ty = llvm::ArrayType::get(Ty, NumPaddingBytes);
     





More information about the cfe-commits mailing list