[llvm] r275647 - [llvm-cov] Attempt to appease an older builder

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 15 16:15:36 PDT 2016


Author: vedantk
Date: Fri Jul 15 18:15:35 2016
New Revision: 275647

URL: http://llvm.org/viewvc/llvm-project?rev=275647&view=rev
Log:
[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

Modified:
    llvm/trunk/tools/llvm-cov/CodeCoverage.cpp

Modified: llvm/trunk/tools/llvm-cov/CodeCoverage.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-cov/CodeCoverage.cpp?rev=275647&r1=275646&r2=275647&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-cov/CodeCoverage.cpp (original)
+++ llvm/trunk/tools/llvm-cov/CodeCoverage.cpp Fri Jul 15 18:15:35 2016
@@ -346,7 +346,9 @@ void CodeCoverageTool::demangleSymbols(c
   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(),




More information about the llvm-commits mailing list