From 7756127077d8cbde40deb47b2f2d2f6ef8d41b77 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Tue, 26 Apr 2016 19:48:18 +0000 Subject: [PATCH] [llvm-pdbdump] Fix version reading on big endian systems. llvm-svn: 267595 --- llvm/lib/DebugInfo/PDB/Raw/PDBInfoStream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/DebugInfo/PDB/Raw/PDBInfoStream.cpp b/llvm/lib/DebugInfo/PDB/Raw/PDBInfoStream.cpp index 8b12eeaf8dd60..fdf32470e7849 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/PDBInfoStream.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/PDBInfoStream.cpp @@ -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);