diff options
author | John McCall <rjmccall@apple.com> | 2016-11-22 20:12:32 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2016-11-22 20:12:32 +0000 |
commit | df8580f0fe54dbd4357610a7307fd05cdc1b46a7 (patch) | |
tree | db9e18896b6c148468655dfce50a454adda15a0c /clang/lib/CodeGen/CGBlocks.cpp | |
parent | 7216b6bc3834ff5495d887946f0c5369fb5d27ba (diff) | |
download | bcm5719-llvm-df8580f0fe54dbd4357610a7307fd05cdc1b46a7.tar.gz bcm5719-llvm-df8580f0fe54dbd4357610a7307fd05cdc1b46a7.zip |
Remove variable only used in an assertion.
llvm-svn: 287691
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGBlocks.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index 3b494bb20ab..d9e14017470 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/lib/CodeGen/CGBlocks.cpp @@ -189,9 +189,6 @@ static llvm::Constant *buildBlockDescriptor(CodeGenModule &CGM, }; */ -/// The number of fields in a block header. -const static unsigned BlockHeaderSize = 5; - namespace { /// A chunk of data that we actually have to capture in the block. struct BlockLayoutChunk { @@ -319,8 +316,6 @@ static void initializeForBlockHeader(CodeGenModule &CGM, CGBlockInfo &info, elementTypes.push_back(CGM.IntTy); elementTypes.push_back(CGM.VoidPtrTy); elementTypes.push_back(CGM.getBlockDescriptorType()); - - assert(elementTypes.size() == BlockHeaderSize); } /// Compute the layout of the given block. Attempts to lay the block |