summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-10-22 01:31:24 +0000
committerMike Stump <mrs@apple.com>2009-10-22 01:31:24 +0000
commitc9f1efe6b3f34827fc8cc8c9a6f0840e53e17c52 (patch)
treeb6f85f65163bb2536424aa4a35bcbdf508e60070 /clang/lib
parent0fffb49d56fb6bf2008d9bb3292335be3d1263c1 (diff)
downloadbcm5719-llvm-c9f1efe6b3f34827fc8cc8c9a6f0840e53e17c52.tar.gz
bcm5719-llvm-c9f1efe6b3f34827fc8cc8c9a6f0840e53e17c52.zip
Remove some misguided code.
llvm-svn: 84823
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index dc4db4ac2c7..682cf5da1e7 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/lib/CodeGen/CGBlocks.cpp
@@ -648,14 +648,8 @@ CodeGenFunction::GenerateBlockFunction(const BlockExpr *BExpr,
LocalDeclMap[VD] = i->second;
}
- // FIXME: We need to rearrange the code for copy/dispose so we have this
- // sooner, so we can calculate offsets correctly.
- if (!BlockHasCopyDispose)
- BlockOffset = CGM.getTargetData()
- .getTypeStoreSizeInBits(CGM.getGenericBlockLiteralType()) / 8;
- else
- BlockOffset = CGM.getTargetData()
- .getTypeStoreSizeInBits(CGM.getGenericExtendedBlockLiteralType()) / 8;
+ BlockOffset = CGM.getTargetData()
+ .getTypeStoreSizeInBits(CGM.getGenericBlockLiteralType()) / 8;
BlockAlign = getContext().getTypeAlign(getContext().VoidPtrTy) / 8;
const FunctionType *BlockFunctionType = BExpr->getFunctionType();
OpenPOWER on IntegriCloud