projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug 20125 - clang-format segfaults on bad config.
[oota-llvm.git]
/
lib
/
Support
/
MemoryObject.cpp
diff --git
a/lib/Support/MemoryObject.cpp
b/lib/Support/MemoryObject.cpp
index c82f46ae79439ae38dddacd42a9f5fee45b6f0f5..02b5b5034fbbe5fef132f1d7128aa0ee87eb39cb 100644
(file)
--- a/
lib/Support/MemoryObject.cpp
+++ b/
lib/Support/MemoryObject.cpp
@@
-15,8
+15,7
@@
MemoryObject::~MemoryObject() {
int MemoryObject::readBytes(uint64_t address,
uint64_t size,
int MemoryObject::readBytes(uint64_t address,
uint64_t size,
- uint8_t* buf,
- uint64_t* copied) {
+ uint8_t* buf) const {
uint64_t current = address;
uint64_t limit = getBase() + getExtent();
uint64_t current = address;
uint64_t limit = getBase() + getExtent();
@@
-30,8
+29,5
@@
int MemoryObject::readBytes(uint64_t address,
current++;
}
current++;
}
- if (copied)
- *copied = current - address;
-
return 0;
}
return 0;
}