diff options
Diffstat (limited to 'llvm/lib/Support/MemoryObject.cpp')
-rw-r--r-- | llvm/lib/Support/MemoryObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/MemoryObject.cpp b/llvm/lib/Support/MemoryObject.cpp index 02b5b5034fb..fe5fa87109d 100644 --- a/llvm/lib/Support/MemoryObject.cpp +++ b/llvm/lib/Support/MemoryObject.cpp @@ -17,7 +17,7 @@ int MemoryObject::readBytes(uint64_t address, uint64_t size, uint8_t* buf) const { uint64_t current = address; - uint64_t limit = getBase() + getExtent(); + uint64_t limit = getExtent(); if (current + size > limit) return -1; |