[llvm] r319200 - Fix non assert build warnings.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 28 10:50:08 PST 2017
Author: rafael
Date: Tue Nov 28 10:50:08 2017
New Revision: 319200
URL: http://llvm.org/viewvc/llvm-project?rev=319200&view=rev
Log:
Fix non assert build warnings.
Modified:
llvm/trunk/lib/DebugInfo/CodeView/ContinuationRecordBuilder.cpp
Modified: llvm/trunk/lib/DebugInfo/CodeView/ContinuationRecordBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/CodeView/ContinuationRecordBuilder.cpp?rev=319200&r1=319199&r2=319200&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/CodeView/ContinuationRecordBuilder.cpp (original)
+++ llvm/trunk/lib/DebugInfo/CodeView/ContinuationRecordBuilder.cpp Tue Nov 28 10:50:08 2017
@@ -108,6 +108,7 @@ void ContinuationRecordBuilder::writeMem
// the previous member. Save off the length of the member we just wrote so
// that we can do some sanity checking on it.
uint32_t MemberLength = SegmentWriter.getOffset() - OriginalOffset;
+ (void) MemberLength;
insertSegmentEnd(OriginalOffset);
// Since this member now becomes a new top-level record, it should have
// gotten a RecordPrefix injected, and that RecordPrefix + the member we
@@ -126,6 +127,7 @@ uint32_t ContinuationRecordBuilder::getC
void ContinuationRecordBuilder::insertSegmentEnd(uint32_t Offset) {
uint32_t SegmentBegin = SegmentOffsets.back();
+ (void)SegmentBegin;
assert(Offset > SegmentBegin);
assert(Offset - SegmentBegin <= MaxSegmentLength);
@@ -136,6 +138,7 @@ void ContinuationRecordBuilder::insertSe
uint32_t NewSegmentBegin = Offset + ContinuationLength;
uint32_t SegmentLength = NewSegmentBegin - SegmentOffsets.back();
+ (void) SegmentLength;
assert(SegmentLength % 4 == 0);
assert(SegmentLength <= MaxRecordLength);
More information about the llvm-commits
mailing list