summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Support/MemoryObject.cpp2
-rw-r--r--llvm/lib/Support/StreamableMemoryObject.cpp1
2 files changed, 1 insertions, 2 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;
diff --git a/llvm/lib/Support/StreamableMemoryObject.cpp b/llvm/lib/Support/StreamableMemoryObject.cpp
index 5cb0680522d..7909c8e678c 100644
--- a/llvm/lib/Support/StreamableMemoryObject.cpp
+++ b/llvm/lib/Support/StreamableMemoryObject.cpp
@@ -25,7 +25,6 @@ public:
assert(LastChar >= FirstChar && "Invalid start/end range");
}
- uint64_t getBase() const override { return 0; }
uint64_t getExtent() const override {
return LastChar - FirstChar;
}
OpenPOWER on IntegriCloud