summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2016-03-20 01:17:54 +0000
committerCraig Topper <craig.topper@gmail.com>2016-03-20 01:17:54 +0000
commitea87eae4ca12a70023abcde70a76d6e522772e9d (patch)
treefb027f12f6489087cb1235d88dbc0a8ae007faad /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parent1d051ee78aa475935a70547d1657a5aa733fa60a (diff)
downloadbcm5719-llvm-ea87eae4ca12a70023abcde70a76d6e522772e9d.tar.gz
bcm5719-llvm-ea87eae4ca12a70023abcde70a76d6e522772e9d.zip
Suppress a -Wunused-variable warning in release builds.
llvm-svn: 263892
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
index 9a9ac39176c..4c4809f50e3 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
@@ -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();
OpenPOWER on IntegriCloud