[all-commits] [llvm/llvm-project] 4aa97e: SourceManager: Simplify early returns in ContentCa...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Tue Oct 20 18:26:59 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4aa97e3dacf3bdf5636fbf89dd8c64f1e4648065
      https://github.com/llvm/llvm-project/commit/4aa97e3dacf3bdf5636fbf89dd8c64f1e4648065
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2020-10-20 (Tue, 20 Oct 2020)

  Changed paths:
    M clang/lib/Basic/SourceManager.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list