summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveDebugValues.cpp
diff options
context:
space:
mode:
authorJeremy Morse <jeremy.morse.llvm@gmail.com>2019-09-04 10:18:03 +0000
committerJeremy Morse <jeremy.morse.llvm@gmail.com>2019-09-04 10:18:03 +0000
commitc8c5f2a84e3026ec29db30ae564e35c7f6f1a0ed (patch)
tree7c6a757f3a238e97c8e6a289066cef36a357e465 /llvm/lib/CodeGen/LiveDebugValues.cpp
parentb2a984c0a88553075cf3b4e27d3536edb3216834 (diff)
downloadbcm5719-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.cpp1
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(););
}
}
OpenPOWER on IntegriCloud