forked from OSchip/llvm-project
[llvm-cov] Fix missing slash in -path-equivalence
This commit is contained in:
parent
c9ca3a3c66
commit
c75a0a1e9d
llvm/tools/llvm-cov
|
@ -399,9 +399,9 @@ void CodeCoverageTool::remapPathNames(const CoverageMapping &Coverage) {
|
||||||
return "";
|
return "";
|
||||||
SmallString<128> NativePath;
|
SmallString<128> NativePath;
|
||||||
sys::path::native(Path, NativePath);
|
sys::path::native(Path, NativePath);
|
||||||
|
sys::path::remove_dots(NativePath, true);
|
||||||
if (!sys::path::is_separator(NativePath.back()))
|
if (!sys::path::is_separator(NativePath.back()))
|
||||||
NativePath += sys::path::get_separator();
|
NativePath += sys::path::get_separator();
|
||||||
sys::path::remove_dots(NativePath, true);
|
|
||||||
return NativePath.c_str();
|
return NativePath.c_str();
|
||||||
};
|
};
|
||||||
std::string RemapFrom = nativeWithTrailing(PathRemapping->first);
|
std::string RemapFrom = nativeWithTrailing(PathRemapping->first);
|
||||||
|
|
Loading…
Reference in New Issue