[llvm] r333336 - [ThinLTO] Fix bot failures from r333335

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Fri May 25 19:53:52 PDT 2018


Author: tejohnson
Date: Fri May 25 19:53:52 2018
New Revision: 333336

URL: http://llvm.org/viewvc/llvm-project?rev=333336&view=rev
Log:
[ThinLTO] Fix bot failures from r333335

Change value in vector from StringRef to std::string to avoid errors
when trying to initialize from a std::string.

Modified:
    llvm/trunk/lib/IR/AsmWriter.cpp

Modified: llvm/trunk/lib/IR/AsmWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/AsmWriter.cpp?rev=333336&r1=333335&r2=333336&view=diff
==============================================================================
--- llvm/trunk/lib/IR/AsmWriter.cpp (original)
+++ llvm/trunk/lib/IR/AsmWriter.cpp Fri May 25 19:53:52 2018
@@ -2576,7 +2576,7 @@ void AssemblyWriter::printModuleSummaryI
 
   // Print module path entries, using the module id as the slot number. To
   // print in order, add paths to a vector indexed by module id.
-  std::vector<std::pair<StringRef, ModuleHash>> moduleVec;
+  std::vector<std::pair<std::string, ModuleHash>> moduleVec;
   std::string RegularLTOModuleName = "[Regular LTO]";
   moduleVec.resize(TheIndex->modulePaths().size());
   for (auto &ModPath : TheIndex->modulePaths()) {




More information about the llvm-commits mailing list