Skip to content

Commit

Permalink
[llvm-pdbdump] Fix version reading on big endian systems.
Browse files Browse the repository at this point in the history
llvm-svn: 267595
  • Loading branch information
Zachary Turner committed Apr 26, 2016
1 parent dae50ba commit 7756127
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llvm/lib/DebugInfo/PDB/Raw/PDBInfoStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ std::error_code PDBInfoStream::reload() {
Stream1.setOffset(0);
support::ulittle32_t Value;

Stream1.readObject(&Version);
Stream1.readObject(&Value);
Version = Value;
if (Version < PdbRaw_ImplVer::PdbImplVC70)
return std::make_error_code(std::errc::not_supported);

Expand Down

0 comments on commit 7756127

Please sign in to comment.