diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/DebugInfo/CodeView/ContinuationRecordBuilder.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/ContinuationRecordBuilder.cpp b/llvm/lib/DebugInfo/CodeView/ContinuationRecordBuilder.cpp index 40e794b3b7b..f180fc6990f 100644 --- a/llvm/lib/DebugInfo/CodeView/ContinuationRecordBuilder.cpp +++ b/llvm/lib/DebugInfo/CodeView/ContinuationRecordBuilder.cpp @@ -108,6 +108,7 @@ void ContinuationRecordBuilder::writeMemberType(RecordType &Record) { // 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::getCurrentSegmentLength() const { 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::insertSegmentEnd(uint32_t Offset) { uint32_t NewSegmentBegin = Offset + ContinuationLength; uint32_t SegmentLength = NewSegmentBegin - SegmentOffsets.back(); + (void) SegmentLength; assert(SegmentLength % 4 == 0); assert(SegmentLength <= MaxRecordLength); |

