From 5cebd7cd1ff329d5d8e0c75eebd626638b5fcd60 Mon Sep 17 00:00:00 2001 From: Kevin Enderby Date: Tue, 11 Nov 2014 19:16:45 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20a=20warning=20about=20=E2=80=98r=5Ftype?= =?UTF-8?q?=E2=80=99=20may=20be=20used=20uninitialized.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to Aaron Ballman for noticing this! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221696 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-objdump/MachODump.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/llvm-objdump/MachODump.cpp b/tools/llvm-objdump/MachODump.cpp index 4129e99cf9d..8bc89174440 100644 --- a/tools/llvm-objdump/MachODump.cpp +++ b/tools/llvm-objdump/MachODump.cpp @@ -346,10 +346,10 @@ int SymbolizerGetOpInfo(void *DisInfo, uint64_t Pc, uint64_t Offset, if (RelocOffset == sect_offset) { Rel = Reloc.getRawDataRefImpl(); RE = info->O->getRelocation(Rel); + r_type = info->O->getAnyRelocationType(RE); r_scattered = info->O->isRelocationScattered(RE); if (r_scattered) { r_value = info->O->getScatteredRelocationValue(RE); - r_type = info->O->getScatteredRelocationType(RE); if (r_type == MachO::GENERIC_RELOC_SECTDIFF || r_type == MachO::GENERIC_RELOC_LOCAL_SECTDIFF) { DataRefImpl RelNext = Rel;