Revert "Remove redundant "std::move"s in return statements"

The build failed with

  error: call to deleted constructor of 'llvm::Error'

errors.

This reverts commit 1c2241a793.
This commit is contained in:
Bill Wendling committed 2020-02-10 07:07:40 -08:00
1 parent 5ad62d3b7f
commit c55cf4afa9
137 files changed
+506 -506

No files matched your search

@@ -37,7 +37,7 @@ DebugStringTableSubsectionRef::getString(uint32_t Offset) const {
Reader.setOffset(Offset);
StringRef Result;
if (auto EC = Reader.readCString(Result))
return EC;
return std::move(EC);
return Result;
}