diff options
author | Anders Carlsson <andersca@mac.com> | 2009-09-12 02:44:18 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-09-12 02:44:18 +0000 |
commit | 18be84c37b2b796fddfb36447c2b29141d7fdd18 (patch) | |
tree | 0871e8d92d16b24197e130876a07b8860a691e99 /lib/CodeGen/CGBlocks.cpp | |
parent | 7dfa4079f4b37507048b19bfc693d3b015d9dd11 (diff) |
Add support for __block variables with alignment greater than __alignof(void *).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81602 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index b8827793d6..ad03e368e0 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -227,11 +227,9 @@ llvm::Value *CodeGenFunction::BuildBlockLiteralTmp(const BlockExpr *BE) { NoteForHelper[helpersize].flag = BLOCK_FIELD_IS_BYREF | // FIXME: Someone double check this. (VD->getType().isObjCGCWeak() ? BLOCK_FIELD_IS_WEAK : 0); - const llvm::Type *Ty = Types[i+5]; llvm::Value *Loc = LocalDeclMap[VD]; Loc = Builder.CreateStructGEP(Loc, 1, "forwarding"); Loc = Builder.CreateLoad(Loc, false); - Loc = Builder.CreateBitCast(Loc, Ty); Builder.CreateStore(Loc, Addr); ++helpersize; continue; |