mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
Fix a warning about ‘r_type’ may be used uninitialized.
Thanks to Aaron Ballman for noticing this! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221696 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
949d328bee
commit
5cebd7cd1f
@ -346,10 +346,10 @@ int SymbolizerGetOpInfo(void *DisInfo, uint64_t Pc, uint64_t Offset,
|
|||||||
if (RelocOffset == sect_offset) {
|
if (RelocOffset == sect_offset) {
|
||||||
Rel = Reloc.getRawDataRefImpl();
|
Rel = Reloc.getRawDataRefImpl();
|
||||||
RE = info->O->getRelocation(Rel);
|
RE = info->O->getRelocation(Rel);
|
||||||
|
r_type = info->O->getAnyRelocationType(RE);
|
||||||
r_scattered = info->O->isRelocationScattered(RE);
|
r_scattered = info->O->isRelocationScattered(RE);
|
||||||
if (r_scattered) {
|
if (r_scattered) {
|
||||||
r_value = info->O->getScatteredRelocationValue(RE);
|
r_value = info->O->getScatteredRelocationValue(RE);
|
||||||
r_type = info->O->getScatteredRelocationType(RE);
|
|
||||||
if (r_type == MachO::GENERIC_RELOC_SECTDIFF ||
|
if (r_type == MachO::GENERIC_RELOC_SECTDIFF ||
|
||||||
r_type == MachO::GENERIC_RELOC_LOCAL_SECTDIFF) {
|
r_type == MachO::GENERIC_RELOC_LOCAL_SECTDIFF) {
|
||||||
DataRefImpl RelNext = Rel;
|
DataRefImpl RelNext = Rel;
|
||||||
|
Loading…
Reference in New Issue
Block a user