OSDN Git Service

Suppress a -Wunused-variable warning in release builds.
authorCraig Topper <craig.topper@gmail.com>
Sun, 20 Mar 2016 01:17:54 +0000 (01:17 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 20 Mar 2016 01:17:54 +0000 (01:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263892 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/CodeViewDebug.cpp

index 9a9ac39..4c4809f 100644 (file)
@@ -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();