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.


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.
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to