[Process] Use early returns in Process::WriteMemory (NFC)
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 1 Apr 2019 20:39:03 +0000 (20:39 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 1 Apr 2019 20:39:03 +0000 (20:39 +0000)
commit533fe617ac607673300f152f2dacedc0d9082098
tree025ff4abe333a14a63edfae51553c73feddea269
parent1e1e212d274c92cdce63b2cf171a75945944b29a
[Process] Use early returns in Process::WriteMemory (NFC)

I found the code of Process::WriteMemory particularly hard to follow
when reviewing Ismail's change in D60022. This simplifies the code and
hopefully prevents similar oversights in the future.

Differential revision: https://reviews.llvm.org/D60092

llvm-svn: 357428
lldb/source/Target/Process.cpp