mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-04 02:18:46 +00:00
Fix off-by-one error when printing relocations inline with disassembly.
llvm-svn: 142952
This commit is contained in:
parent
066032210c
commit
df9058b98c
@ -306,7 +306,7 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) {
|
||||
SmallString<32> val;
|
||||
if (error(rel_cur->getAddress(addr))) goto skip_print_rel;
|
||||
// Stop when rel_cur's address is past the current instruction.
|
||||
if (addr > Index + Size) break;
|
||||
if (addr >= Index + Size) break;
|
||||
if (error(rel_cur->getTypeName(name))) goto skip_print_rel;
|
||||
if (error(rel_cur->getValueString(val))) goto skip_print_rel;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user