r287691 - Remove variable only used in an assertion.
John McCall via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 22 12:12:33 PST 2016
Author: rjmccall
Date: Tue Nov 22 14:12:32 2016
New Revision: 287691
URL: http://llvm.org/viewvc/llvm-project?rev=287691&view=rev
Log:
Remove variable only used in an assertion.
Modified:
cfe/trunk/lib/CodeGen/CGBlocks.cpp
Modified: cfe/trunk/lib/CodeGen/CGBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBlocks.cpp?rev=287691&r1=287690&r2=287691&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBlocks.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBlocks.cpp Tue Nov 22 14:12:32 2016
@@ -189,9 +189,6 @@ static llvm::Constant *buildBlockDescrip
};
*/
-/// 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(Cod
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
More information about the cfe-commits
mailing list