From df8580f0fe54dbd4357610a7307fd05cdc1b46a7 Mon Sep 17 00:00:00 2001 From: John McCall Date: Tue, 22 Nov 2016 20:12:32 +0000 Subject: [PATCH] Remove variable only used in an assertion. llvm-svn: 287691 --- clang/lib/CodeGen/CGBlocks.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index 3b494bb20abc..d9e14017470e 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