Revert "Fix compilation failure in CoverageMapping.cpp"
authorDouglas Yung <douglas.yung@sony.com>
Thu, 26 Jan 2023 03:10:29 +0000 (19:10 -0800)
committerDouglas Yung <douglas.yung@sony.com>
Thu, 26 Jan 2023 03:10:29 +0000 (19:10 -0800)
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.

llvm/lib/ProfileData/Coverage/CoverageMapping.cpp

index 9e3a3d7..52cb577 100644 (file)
@@ -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;
     }
   }