Skip to content

Commit bba7f86

Browse files
committed
Fix non assert build warnings.
llvm-svn: 319200
1 parent ca46db9 commit bba7f86

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/DebugInfo/CodeView/ContinuationRecordBuilder.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ void ContinuationRecordBuilder::writeMemberType(RecordType &Record) {
108108
// the previous member. Save off the length of the member we just wrote so
109109
// that we can do some sanity checking on it.
110110
uint32_t MemberLength = SegmentWriter.getOffset() - OriginalOffset;
111+
(void) MemberLength;
111112
insertSegmentEnd(OriginalOffset);
112113
// Since this member now becomes a new top-level record, it should have
113114
// gotten a RecordPrefix injected, and that RecordPrefix + the member we
@@ -126,6 +127,7 @@ uint32_t ContinuationRecordBuilder::getCurrentSegmentLength() const {
126127

127128
void ContinuationRecordBuilder::insertSegmentEnd(uint32_t Offset) {
128129
uint32_t SegmentBegin = SegmentOffsets.back();
130+
(void)SegmentBegin;
129131
assert(Offset > SegmentBegin);
130132
assert(Offset - SegmentBegin <= MaxSegmentLength);
131133

@@ -136,6 +138,7 @@ void ContinuationRecordBuilder::insertSegmentEnd(uint32_t Offset) {
136138

137139
uint32_t NewSegmentBegin = Offset + ContinuationLength;
138140
uint32_t SegmentLength = NewSegmentBegin - SegmentOffsets.back();
141+
(void) SegmentLength;
139142

140143
assert(SegmentLength % 4 == 0);
141144
assert(SegmentLength <= MaxRecordLength);

0 commit comments

Comments
 (0)