]> granicus.if.org Git - clang/commitdiff
Remove variable only used in an assertion.
authorJohn McCall <rjmccall@apple.com>
Tue, 22 Nov 2016 20:12:32 +0000 (20:12 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 22 Nov 2016 20:12:32 +0000 (20:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@287691 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGBlocks.cpp

index 3b494bb20abc805365dc20a7fdf441dccba38e0f..d9e14017470eef3dd30fd07dc7691934dfcd2db1 100644 (file)
@@ -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