From 310c640b641dfafd3a4a17d4dd23dc46b5f8e21d Mon Sep 17 00:00:00 2001 From: Kevin Enderby Date: Mon, 6 Apr 2015 22:33:43 +0000 Subject: [PATCH] Fix failure on builder clang-cmake-mips where it was printing a 32-bit address incorrectly because it came from an expression using S.getAddress() which always returns a 64-bit value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234251 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-objdump/MachODump.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/llvm-objdump/MachODump.cpp b/tools/llvm-objdump/MachODump.cpp index 4eb93b5c474..36b83f7ef63 100644 --- a/tools/llvm-objdump/MachODump.cpp +++ b/tools/llvm-objdump/MachODump.cpp @@ -3102,7 +3102,8 @@ walk_pointer_list_32(const char *listname, const SectionRef S, if (i + sizeof(uint32_t) > S.getSize()) outs() << listname << " list pointer extends past end of (" << SegName << "," << SectName << ") section\n"; - outs() << format("%08" PRIx32, S.getAddress() + i) << " "; + uint32_t Address = S.getAddress() + i; + outs() << format("%08" PRIx32, Address) << " "; if (O->isLittleEndian() != sys::IsLittleEndianHost) sys::swapByteOrder(p);