[llvm] r263892 - Suppress a -Wunused-variable warning in release builds.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 19 18:17:55 PDT 2016


Author: ctopper
Date: Sat Mar 19 20:17:54 2016
New Revision: 263892

URL: http://llvm.org/viewvc/llvm-project?rev=263892&view=rev
Log:
Suppress a -Wunused-variable warning in release builds.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp?rev=263892&r1=263891&r2=263892&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp Sat Mar 19 20:17:54 2016
@@ -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();




More information about the llvm-commits mailing list