diff options
Diffstat (limited to 'contrib/llvm-project/llvm/tools/llvm-cov/gcov.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/tools/llvm-cov/gcov.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/contrib/llvm-project/llvm/tools/llvm-cov/gcov.cpp b/contrib/llvm-project/llvm/tools/llvm-cov/gcov.cpp index 9a1ebebc87fc..00ea12415b22 100644 --- a/contrib/llvm-project/llvm/tools/llvm-cov/gcov.cpp +++ b/contrib/llvm-project/llvm/tools/llvm-cov/gcov.cpp @@ -35,12 +35,10 @@ static void reportCoverage(StringRef SourceFile, StringRef ObjectDir, // A file was given. Ignore the source file and look next to this file. sys::path::replace_extension(CoverageFileStem, ""); - std::string GCNO = InputGCNO.empty() - ? std::string(CoverageFileStem.str()) + ".gcno" - : InputGCNO; - std::string GCDA = InputGCDA.empty() - ? std::string(CoverageFileStem.str()) + ".gcda" - : InputGCDA; + std::string GCNO = + InputGCNO.empty() ? std::string(CoverageFileStem) + ".gcno" : InputGCNO; + std::string GCDA = + InputGCDA.empty() ? std::string(CoverageFileStem) + ".gcda" : InputGCDA; GCOVFile GF; // Open .gcda and .gcda without requiring a NUL terminator. The concurrent |