summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/MemoryObject.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-11-12 02:27:40 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-11-12 02:27:40 +0000
commitef0482f50a8049735cce8aa2e1872ef25eb04995 (patch)
treeab23c30ed7fee39b6b2b2901ec45cd92c7c56943 /llvm/lib/Support/MemoryObject.cpp
parent559586b6e59a75630b32d89133d442b4d2e11e0b (diff)
downloadbcm5719-llvm-ef0482f50a8049735cce8aa2e1872ef25eb04995.tar.gz
bcm5719-llvm-ef0482f50a8049735cce8aa2e1872ef25eb04995.zip
Remove unused method. NFC.
llvm-svn: 221757
Diffstat (limited to 'llvm/lib/Support/MemoryObject.cpp')
-rw-r--r--llvm/lib/Support/MemoryObject.cpp2
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;
OpenPOWER on IntegriCloud