[clang-tools-extra] r328588 - [clang-doc] Removing -Wunused-variable warning
Julie Hockett via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 26 15:37:31 PDT 2018
Author: juliehockett
Date: Mon Mar 26 15:37:31 2018
New Revision: 328588
URL: http://llvm.org/viewvc/llvm-project?rev=328588&view=rev
Log:
[clang-doc] Removing -Wunused-variable warning
Warning was appearing in release with debug info build, this removes it.
Differential Revision: https://reviews.llvm.org/D44912
Modified:
clang-tools-extra/trunk/clang-doc/BitcodeWriter.cpp
Modified: clang-tools-extra/trunk/clang-doc/BitcodeWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-doc/BitcodeWriter.cpp?rev=328588&r1=328587&r2=328588&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-doc/BitcodeWriter.cpp (original)
+++ clang-tools-extra/trunk/clang-doc/BitcodeWriter.cpp Mon Mar 26 15:37:31 2018
@@ -264,8 +264,8 @@ void ClangDocBitcodeWriter::emitBlockID(
Record.push_back(BID);
Stream.EmitRecord(llvm::bitc::BLOCKINFO_CODE_SETBID, Record);
Stream.EmitRecord(llvm::bitc::BLOCKINFO_CODE_BLOCKNAME,
- ArrayRef<unsigned char>(BlockIdNameMap[BID].bytes_begin(),
- BlockIdNameMap[BID].bytes_end()));
+ ArrayRef<unsigned char>(BlockIdName.bytes_begin(),
+ BlockIdName.bytes_end()));
}
/// \brief Emits a record name to the BLOCKINFO block.
More information about the cfe-commits
mailing list