diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-11-28 18:50:08 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-11-28 18:50:08 +0000 |
commit | 82ef781f4e418114e9521ea02661a526472e06bc (patch) | |
tree | 3cd912a5cfcf12065872d318b8f58788de40fe2d /lib/DebugInfo | |
parent | dd74d55407382bfc110c7233a12b34e3a9c90818 (diff) |
Fix non assert build warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319200 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo')
-rw-r--r-- | lib/DebugInfo/CodeView/ContinuationRecordBuilder.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/DebugInfo/CodeView/ContinuationRecordBuilder.cpp b/lib/DebugInfo/CodeView/ContinuationRecordBuilder.cpp index 40e794b3b7b..f180fc6990f 100644 --- a/lib/DebugInfo/CodeView/ContinuationRecordBuilder.cpp +++ b/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); |