SourceManager: Simplify early returns in ContentCache::getBufferOrNone, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 19 Oct 2020 19:28:38 +0000 (15:28 -0400)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 21 Oct 2020 01:26:37 +0000 (21:26 -0400)
commit4aa97e3dacf3bdf5636fbf89dd8c64f1e4648065
treef25ef140dfacf27750e1dd72217cfaa53041631d
parentc565f09f4b0d908f51aaf4a841285f39ef93bc8c
SourceManager: Simplify early returns in ContentCache::getBufferOrNone, NFC

As suggested in the review for https://reviews.llvm.org/D89430, simplify
the logic for marking the buffer as invalid in the early return paths.

Differential Revision: https://reviews.llvm.org/D89722
clang/lib/Basic/SourceManager.cpp