From f88097c9352569674aac6913972ba25a9e39f9af 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 --- tools/llvm-cov/CodeCoverage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/llvm-cov/CodeCoverage.cpp b/tools/llvm-cov/CodeCoverage.cpp index 702c03237f1..8ef4b747a0f 100644 --- a/tools/llvm-cov/CodeCoverage.cpp +++ b/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);