diff options
author | Jeremy Morse <jeremy.morse.llvm@gmail.com> | 2019-09-04 10:18:03 +0000 |
---|---|---|
committer | Jeremy Morse <jeremy.morse.llvm@gmail.com> | 2019-09-04 10:18:03 +0000 |
commit | c8c5f2a84e3026ec29db30ae564e35c7f6f1a0ed (patch) | |
tree | 7c6a757f3a238e97c8e6a289066cef36a357e465 /llvm/lib/CodeGen/LiveDebugValues.cpp | |
parent | b2a984c0a88553075cf3b4e27d3536edb3216834 (diff) | |
download | bcm5719-llvm-c8c5f2a84e3026ec29db30ae564e35c7f6f1a0ed.tar.gz bcm5719-llvm-c8c5f2a84e3026ec29db30ae564e35c7f6f1a0ed.zip |
[LiveDebugValues][NFC] Silence an unused variable warning
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.
llvm-svn: 370870
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugValues.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues.cpp b/llvm/lib/CodeGen/LiveDebugValues.cpp index ea5512fc369..48f361659f1 100644 --- a/llvm/lib/CodeGen/LiveDebugValues.cpp +++ b/llvm/lib/CodeGen/LiveDebugValues.cpp @@ -1172,6 +1172,7 @@ void LiveDebugValues::flushPendingLocs(VarLocInMBB &PendingInLocs, DebugInstr->getDesc(), IsIndirect, Reg, DebugInstr->getDebugVariable(), DebugExpr); } + (void)MI; LLVM_DEBUG(dbgs() << "Inserted: "; MI->dump();); } } |