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:
parent
927565d9fa
commit
576f154cb7
@ -19,7 +19,8 @@ std::error_code PDBInfoStream::reload() {
|
|||||||
Stream1.setOffset(0);
|
Stream1.setOffset(0);
|
||||||
support::ulittle32_t Value;
|
support::ulittle32_t Value;
|
||||||
|
|
||||||
Stream1.readObject(&Version);
|
Stream1.readObject(&Value);
|
||||||
|
Version = Value;
|
||||||
if (Version < PdbRaw_ImplVer::PdbImplVC70)
|
if (Version < PdbRaw_ImplVer::PdbImplVC70)
|
||||||
return std::make_error_code(std::errc::not_supported);
|
return std::make_error_code(std::errc::not_supported);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user