diff options
author | Teresa Johnson <tejohnson@google.com> | 2018-05-26 02:53:52 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2018-05-26 02:53:52 +0000 |
commit | 724e7a19de56d44143b9ef747d9192a283f0758d (patch) | |
tree | 0d68b7b5277dec262ba0f702a92710fc392f5a4f /llvm/lib/IR/AsmWriter.cpp | |
parent | 08d5b4ef0d0839761e3b7546efcd3ee0454742ea (diff) | |
download | bcm5719-llvm-724e7a19de56d44143b9ef747d9192a283f0758d.tar.gz bcm5719-llvm-724e7a19de56d44143b9ef747d9192a283f0758d.zip |
[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
Diffstat (limited to 'llvm/lib/IR/AsmWriter.cpp')
-rw-r--r-- | llvm/lib/IR/AsmWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp index 7659a6b580d..1212f8c7e4d 100644 --- a/llvm/lib/IR/AsmWriter.cpp +++ b/llvm/lib/IR/AsmWriter.cpp @@ -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()) { |