[PATCH] D44912: [clang-doc] Removing -Wunused-variable warning
Julie Hockett via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 26 15:15:57 PDT 2018
juliehockett created this revision.
juliehockett added reviewers: jakehehrlich, lebedev.ri, sammccall.
juliehockett added a project: clang-tools-extra.
Herald added subscribers: JDevlieghere, aprantl.
Warning was appearing in release with debug info build, this removes it.
https://reviews.llvm.org/D44912
Files:
clang-doc/BitcodeWriter.cpp
Index: clang-doc/BitcodeWriter.cpp
===================================================================
--- clang-doc/BitcodeWriter.cpp
+++ clang-doc/BitcodeWriter.cpp
@@ -264,8 +264,8 @@
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44912.139858.patch
Type: text/x-patch
Size: 702 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180326/ed1a7cbc/attachment.bin>
More information about the cfe-commits
mailing list