HomePhabricator

[Process] Use early returns in Process::WriteMemory (NFC)

Authored by JDevlieghere on Apr 1 2019, 1:39 PM.

Description

[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