1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

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

llvm-svn: 267595
This commit is contained in:
Zachary Turner 2016-04-26 19:48:18 +00:00
parent 927565d9fa
commit 576f154cb7

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