aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
diff options
context:
space:
mode:
authorDouglas Yung <douglas.yung@sony.com>2023-01-25 19:10:29 -0800
committerDouglas Yung <douglas.yung@sony.com>2023-01-25 19:10:29 -0800
commitd4e3a1dcf6494874c1cc4f180c780641593d2ab0 (patch)
tree09a9c375663007ae474ff028e8ed2e4bf7078408 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
parentd416f7e7f16a48f085773a9ca2033c63501bdb16 (diff)
downloadllvm-d4e3a1dcf6494874c1cc4f180c780641593d2ab0.zip
llvm-d4e3a1dcf6494874c1cc4f180c780641593d2ab0.tar.gz
llvm-d4e3a1dcf6494874c1cc4f180c780641593d2ab0.tar.bz2
Revert "Fix compilation failure in CoverageMapping.cpp"
This reverts commit 46013fc10a6879f4c9b4c9b9fbd43e4dc70f3c8b. The original commit efbc8bb18eda63007216ad0cb5a8de04963eddd5 is failing on several bots, so reverting this follow-up commit as well as the original commit.
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
-rw-r--r--llvm/lib/ProfileData/Coverage/CoverageMapping.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp b/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
index 9e3a3d7..52cb577 100644
--- a/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
+++ b/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
@@ -406,7 +406,7 @@ CoverageMapping::load(ArrayRef<StringRef> ObjectFilenames,
if (Error E =
loadFromFile(File.value(), GetArch(File.index()), CompilationDir,
*ProfileReader, *Coverage, DataFound, &FoundBinaryIDs))
- return std::move(E);
+ return E;
}
if (BIDFetcher) {
@@ -438,7 +438,7 @@ CoverageMapping::load(ArrayRef<StringRef> ObjectFilenames,
StringRef Arch = Arches.size() == 1 ? Arches.front() : StringRef();
if (Error E = loadFromFile(Path, Arch, CompilationDir, *ProfileReader,
*Coverage, DataFound))
- return std::move(E);
+ return E;
}
}