[pdb] Fix some warnings that break -Werror builds.
llvm-svn: 277021
diff --git a/llvm/lib/DebugInfo/PDB/Raw/DbiStreamBuilder.cpp b/llvm/lib/DebugInfo/PDB/Raw/DbiStreamBuilder.cpp
index 6e12822..b68f1dc 100644
--- a/llvm/lib/DebugInfo/PDB/Raw/DbiStreamBuilder.cpp
+++ b/llvm/lib/DebugInfo/PDB/Raw/DbiStreamBuilder.cpp
@@ -198,9 +198,9 @@
DbiStreamHeader *H = Allocator.Allocate<DbiStreamHeader>();
if (auto EC = generateModiSubstream())
- return std::move(EC);
+ return EC;
if (auto EC = generateFileInfoSubstream())
- return std::move(EC);
+ return EC;
H->VersionHeader = *VerHeader;
H->VersionSignature = -1;