From ea87eae4ca12a70023abcde70a76d6e522772e9d Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 20 Mar 2016 01:17:54 +0000 Subject: Suppress a -Wunused-variable warning in release builds. llvm-svn: 263892 --- llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp') diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 9a9ac39..4c4809f 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -288,6 +288,7 @@ void CodeViewDebug::emitTypeInformation() { // Emit LF_FUNC_ID records for all inlined subprograms to the type stream. // Allocate one type index for each func id. unsigned NextIdx = getNextTypeIndex(InlinedSubprograms.size()); + (void)NextIdx; assert(NextIdx == FuncIdTypeIndexStart && "func id type indices broken"); for (auto *SP : InlinedSubprograms) { StringRef DisplayName = SP->getDisplayName(); -- cgit v1.1