mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[RemoteMirrors] Change MemoryReader::readBytes to return a unique_ptr instead of a tuple so that the destructor handles freeing the memory.
This commit is contained in:
@@ -42,9 +42,8 @@ class InProcessMemoryReader final : public MemoryReader {
|
||||
return true;
|
||||
}
|
||||
|
||||
std::tuple<const void *, std::function<void()>>
|
||||
readBytes(RemoteAddress address, uint64_t size) override {
|
||||
return std::make_tuple(address.getLocalPointer<void>(), []{});
|
||||
ReadBytesResult readBytes(RemoteAddress address, uint64_t size) override {
|
||||
return ReadBytesResult(address.getLocalPointer<void>(), [](const void *) {});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user