1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

[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.

llvm-svn: 333336
This commit is contained in:
Teresa Johnson 2018-05-26 02:53:52 +00:00
parent 44e9da2985
commit 6db4b63df2

View File

@ -2576,7 +2576,7 @@ void AssemblyWriter::printModuleSummaryIndex() {
// 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()) {