[llvm] b5aaa60 - Fix "unused variable" warning in NDEBUG builds.
Richard Smith via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 13 13:57:17 PDT 2020
Author: Richard Smith
Date: 2020-03-13T13:56:57-07:00
New Revision: b5aaa60962f7031f9c12f3d81a535653be1417d0
URL: https://github.com/llvm/llvm-project/commit/b5aaa60962f7031f9c12f3d81a535653be1417d0
DIFF: https://github.com/llvm/llvm-project/commit/b5aaa60962f7031f9c12f3d81a535653be1417d0.diff
LOG: Fix "unused variable" warning in NDEBUG builds.
Added:
Modified:
llvm/lib/DebugInfo/CodeView/TypeStreamMerger.cpp
Removed:
################################################################################
diff --git a/llvm/lib/DebugInfo/CodeView/TypeStreamMerger.cpp b/llvm/lib/DebugInfo/CodeView/TypeStreamMerger.cpp
index c233db5c1d06..45b462378cbb 100644
--- a/llvm/lib/DebugInfo/CodeView/TypeStreamMerger.cpp
+++ b/llvm/lib/DebugInfo/CodeView/TypeStreamMerger.cpp
@@ -393,6 +393,7 @@ TypeStreamMerger::remapIndices(const CVType &OriginalType,
assert(Storage.size() == AlignedSize &&
"The storage buffer size is not a multiple of 4 bytes which will "
"cause misalignment in the output TPI stream!");
+ (void)AlignedSize;
SmallVector<TiReference, 4> Refs;
discoverTypeIndices(OriginalType.RecordData, Refs);
More information about the llvm-commits
mailing list