[pdb] Fix some warnings that break -Werror builds.
authorZachary Turner <zturner@google.com>
Thu, 28 Jul 2016 19:18:02 +0000 (19:18 +0000)
committerZachary Turner <zturner@google.com>
Thu, 28 Jul 2016 19:18:02 +0000 (19:18 +0000)
llvm-svn: 277021

llvm/include/llvm/DebugInfo/Msf/StreamRef.h
llvm/lib/DebugInfo/PDB/Raw/DbiStreamBuilder.cpp

index 87e53ce..ff280c0 100644 (file)
@@ -17,7 +17,7 @@ namespace llvm {
 namespace msf {
 template <class StreamType, class RefType> class StreamRefBase {
 public:
-  StreamRefBase() : Stream(nullptr), Length(0), ViewOffset(0) {}
+  StreamRefBase() : Stream(nullptr), ViewOffset(0), Length(0) {}
   StreamRefBase(const StreamType &Stream, uint32_t Offset, uint32_t Length)
       : Stream(&Stream), ViewOffset(Offset), Length(Length) {}
 
index 6e12822..b68f1dc 100644 (file)
@@ -198,9 +198,9 @@ Error DbiStreamBuilder::finalize() {
   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;