diff options
author | Craig Topper <craig.topper@gmail.com> | 2016-03-20 01:17:54 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2016-03-20 01:17:54 +0000 |
commit | ea87eae4ca12a70023abcde70a76d6e522772e9d (patch) | |
tree | fb027f12f6489087cb1235d88dbc0a8ae007faad /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 1d051ee78aa475935a70547d1657a5aa733fa60a (diff) | |
download | bcm5719-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.cpp | 1 |
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(); |