Remove unused method. NFC.
[oota-llvm.git] / lib / Support / MemoryObject.cpp
index 02b5b5034fbbe5fef132f1d7128aa0ee87eb39cb..fe5fa87109d67609e9a1f31c4b441901f7b94f5b 100644 (file)
@@ -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;