Correctly disassemble truncated asm.
Patch by Richard Simth. llvm-svn: 122962
This commit is contained in:
@@ -44,7 +44,7 @@ public:
|
||||
uint64_t getExtent() const { return Bytes.size(); }
|
||||
|
||||
int readByte(uint64_t Addr, uint8_t *Byte) const {
|
||||
if (Addr > getExtent())
|
||||
if (Addr >= getExtent())
|
||||
return -1;
|
||||
*Byte = Bytes[Addr].first;
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user