projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9ca3a3
)
[llvm-cov] Fix missing slash in -path-equivalence
author
Zequan Wu
<zequanwu@google.com>
Fri, 6 Nov 2020 22:53:57 +0000
(14:53 -0800)
committer
Zequan Wu
<zequanwu@google.com>
Fri, 6 Nov 2020 22:54:11 +0000
(14:54 -0800)
llvm/tools/llvm-cov/CodeCoverage.cpp
patch
|
blob
|
history
diff --git
a/llvm/tools/llvm-cov/CodeCoverage.cpp
b/llvm/tools/llvm-cov/CodeCoverage.cpp
index
702c032
..
8ef4b74
100644
(file)
--- 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);