From 9345d982d0e785d8238d00a486bbfb8499c4d471 Mon Sep 17 00:00:00 2001 From: Julie Hockett Date: Mon, 26 Mar 2018 22:37:31 +0000 Subject: [PATCH] [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 llvm-svn: 328588 --- clang-tools-extra/clang-doc/BitcodeWriter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang-tools-extra/clang-doc/BitcodeWriter.cpp b/clang-tools-extra/clang-doc/BitcodeWriter.cpp index 0fe5687..a6c9a41 100644 --- a/clang-tools-extra/clang-doc/BitcodeWriter.cpp +++ b/clang-tools-extra/clang-doc/BitcodeWriter.cpp @@ -264,8 +264,8 @@ void ClangDocBitcodeWriter::emitBlockID(BlockId BID) { Record.push_back(BID); Stream.EmitRecord(llvm::bitc::BLOCKINFO_CODE_SETBID, Record); Stream.EmitRecord(llvm::bitc::BLOCKINFO_CODE_BLOCKNAME, - ArrayRef(BlockIdNameMap[BID].bytes_begin(), - BlockIdNameMap[BID].bytes_end())); + ArrayRef(BlockIdName.bytes_begin(), + BlockIdName.bytes_end())); } /// \brief Emits a record name to the BLOCKINFO block. -- 2.7.4