Skip to content

Commit 5d4c1c0

Browse files
committed
Roll an expression into an assert to remove the need for a (void) cast.
1 parent e2cb121 commit 5d4c1c0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/DebugInfo/CodeView/TypeStreamMerger.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,11 +389,9 @@ ArrayRef<uint8_t>
389389
TypeStreamMerger::remapIndices(const CVType &OriginalType,
390390
MutableArrayRef<uint8_t> Storage) {
391391
unsigned Align = OriginalType.RecordData.size() & 3;
392-
unsigned AlignedSize = alignTo(OriginalType.RecordData.size(), 4);
393-
assert(Storage.size() == AlignedSize &&
392+
assert(Storage.size() == alignTo(OriginalType.RecordData.size(), 4) &&
394393
"The storage buffer size is not a multiple of 4 bytes which will "
395394
"cause misalignment in the output TPI stream!");
396-
(void)AlignedSize;
397395

398396
SmallVector<TiReference, 4> Refs;
399397
discoverTypeIndices(OriginalType.RecordData, Refs);

0 commit comments

Comments
 (0)