]> granicus.if.org Git - llvm/commitdiff
[LiveDebugValues][NFC] Silence an unused variable warning
authorJeremy Morse <jeremy.morse.llvm@gmail.com>
Wed, 4 Sep 2019 10:18:03 +0000 (10:18 +0000)
committerJeremy Morse <jeremy.morse.llvm@gmail.com>
Wed, 4 Sep 2019 10:18:03 +0000 (10:18 +0000)
On release builds, 'MI' isn't used by anything (it's already inserted into a
block by BuildMI), while on non-release builds it's used by a LLVM_DEBUG
statement. Mark as explicitly used to avoid the warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370870 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveDebugValues.cpp

index ea5512fc369b8a7dee2e7c5163fe2288458d2066..48f361659f1b533239a0d5eb20a19c49c0e54f57 100644 (file)
@@ -1172,6 +1172,7 @@ void LiveDebugValues::flushPendingLocs(VarLocInMBB &PendingInLocs,
                      DebugInstr->getDesc(), IsIndirect, Reg,
                      DebugInstr->getDebugVariable(), DebugExpr);
       }
+      (void)MI;
       LLVM_DEBUG(dbgs() << "Inserted: "; MI->dump(););
     }
   }