[llvm] Use early exits and get rid of if-return-else-return pattern; NFC
authorKirill Bobyrev <kbobyrev@google.com>
Wed, 21 Oct 2020 12:18:36 +0000 (14:18 +0200)
committerKirill Bobyrev <kbobyrev@google.com>
Wed, 21 Oct 2020 12:18:42 +0000 (14:18 +0200)
commit96685faf6dd9b044394af6f7a9d8b10fadb327b5
treefb3ea0a21507888a5671501f3173a9568436dce9
parent9f5ece63ce62253321a8e8cdd3e052b5b5270b8e
[llvm] Use early exits and get rid of if-return-else-return pattern; NFC

https://llvm.org/docs/CodingStandards.html#use-early-exits-and-continue-to-simplify-code

Reviewed By: kadircet

Differential Revision: https://reviews.llvm.org/D89857
llvm/lib/Support/Path.cpp