[llvm] r267589 - Fix warnings and -Werror build on clang.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 26 12:24:11 PDT 2016


Author: zturner
Date: Tue Apr 26 14:24:10 2016
New Revision: 267589

URL: http://llvm.org/viewvc/llvm-project?rev=267589&view=rev
Log:
Fix warnings and -Werror build on clang.

Modified:
    llvm/trunk/include/llvm/DebugInfo/PDB/Raw/PDBDbiStream.h
    llvm/trunk/lib/DebugInfo/PDB/Raw/PDBDbiStream.cpp

Modified: llvm/trunk/include/llvm/DebugInfo/PDB/Raw/PDBDbiStream.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo/PDB/Raw/PDBDbiStream.h?rev=267589&r1=267588&r2=267589&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo/PDB/Raw/PDBDbiStream.h (original)
+++ llvm/trunk/include/llvm/DebugInfo/PDB/Raw/PDBDbiStream.h Tue Apr 26 14:24:10 2016
@@ -43,8 +43,8 @@ public:
   PDB_Machine getMachineType() const;
 
 private:
-  PDBStream Stream;
   PDBFile &Pdb;
+  PDBStream Stream;
   std::unique_ptr<HeaderInfo> Header;
 };
 }

Modified: llvm/trunk/lib/DebugInfo/PDB/Raw/PDBDbiStream.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/PDB/Raw/PDBDbiStream.cpp?rev=267589&r1=267588&r2=267589&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/PDB/Raw/PDBDbiStream.cpp (original)
+++ llvm/trunk/lib/DebugInfo/PDB/Raw/PDBDbiStream.cpp Tue Apr 26 14:24:10 2016
@@ -47,7 +47,7 @@ const uint16_t BuildNewFormatShift = 15;
 }
 
 struct PDBDbiStream::HeaderInfo {
-  ulittle32_t VersionSignature;
+  little32_t VersionSignature;
   ulittle32_t VersionHeader;
   ulittle32_t Age; // Should match PDBInfoStream.
   ulittle16_t GSSyms;




More information about the llvm-commits mailing list