diff options
author | Mike Stump <mrs@apple.com> | 2009-09-12 18:58:28 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-09-12 18:58:28 +0000 |
commit | 9e8725a434cd70ab74fa914554d7933a4bb1e501 (patch) | |
tree | 229c1dc898baaf48484856d338143638f59d64ea /lib/CodeGen/CGDecl.cpp | |
parent | 7445d55cf2fc16dac67bcd2ae6344ff2b7de27ce (diff) |
Add FIXME for alignments that won't be honored.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81620 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | lib/CodeGen/CGDecl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index 05c2533d6f..926e5c6686 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -273,6 +273,8 @@ const llvm::Type *CodeGenFunction::BuildByRefType(const ValueDecl *D) { 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); |