[llvm-pdbdump] Fix version reading on big endian systems.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267595 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Zachary Turner 2016-04-26 19:48:18 +00:00
parent 650fa7d863
commit 1330a1c343

View File

@ -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);