Fix failure on builder clang-cmake-mips where it was printing a 32-bit address
authorKevin Enderby <enderby@apple.com>
Mon, 6 Apr 2015 22:33:43 +0000 (22:33 +0000)
committerKevin Enderby <enderby@apple.com>
Mon, 6 Apr 2015 22:33:43 +0000 (22:33 +0000)
incorrectly because it came from an expression using S.getAddress() which always
returns a 64-bit value.

llvm-svn: 234251

llvm/tools/llvm-objdump/MachODump.cpp

index 4eb93b5..36b83f7 100644 (file)
@@ -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);