From eb1556ce4149ddfd1f88708a0fc51f733d83832d Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Fri, 15 Jul 2016 23:15:35 +0000 Subject: [PATCH] [llvm-cov] Attempt to appease an older builder It's using a version of clang which can't (or won't) deduce an implicit conversion from a SmallString to a StringRef. Write the conversion out explicitly: http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-buildserver/builds/8574 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275647 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-cov/CodeCoverage.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/llvm-cov/CodeCoverage.cpp b/tools/llvm-cov/CodeCoverage.cpp index e9346cd4c5b..0a4d1a67d61 100644 --- a/tools/llvm-cov/CodeCoverage.cpp +++ b/tools/llvm-cov/CodeCoverage.cpp @@ -346,7 +346,9 @@ void CodeCoverageTool::demangleSymbols(const CoverageMapping &Coverage) { for (const std::string &Arg : ViewOpts.DemanglerOpts) ArgsV.push_back(Arg.c_str()); ArgsV.push_back(nullptr); - StringRef InputPathRef{InputPath}, OutputPathRef{OutputPath}, StderrRef; + StringRef InputPathRef = InputPath.str(); + StringRef OutputPathRef = OutputPath.str(); + StringRef StderrRef; const StringRef *Redirects[] = {&InputPathRef, &OutputPathRef, &StderrRef}; std::string ErrMsg; int RC = sys::ExecuteAndWait(ViewOpts.DemanglerOpts[0], ArgsV.data(),