From c75a0a1e9dc29be4e00d37d0d00288afc1a6153f Mon Sep 17 00:00:00 2001 From: Zequan Wu Date: Fri, 6 Nov 2020 14:53:57 -0800 Subject: [PATCH] [llvm-cov] Fix missing slash in -path-equivalence --- llvm/tools/llvm-cov/CodeCoverage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/tools/llvm-cov/CodeCoverage.cpp b/llvm/tools/llvm-cov/CodeCoverage.cpp index 702c03237f17..8ef4b747a0fb 100644 --- a/llvm/tools/llvm-cov/CodeCoverage.cpp +++ b/llvm/tools/llvm-cov/CodeCoverage.cpp @@ -399,9 +399,9 @@ void CodeCoverageTool::remapPathNames(const CoverageMapping &Coverage) { return ""; SmallString<128> NativePath; sys::path::native(Path, NativePath); + sys::path::remove_dots(NativePath, true); if (!sys::path::is_separator(NativePath.back())) NativePath += sys::path::get_separator(); - sys::path::remove_dots(NativePath, true); return NativePath.c_str(); }; std::string RemapFrom = nativeWithTrailing(PathRemapping->first);