[all-commits] [llvm/llvm-project] d038bb: [clang] Fix redirection behaviour for cached FileE...

Ben Langmuir via All-commits all-commits at lists.llvm.org
Fri Aug 5 12:23:58 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d038bb196c51dcf80cbe771f4229b4e227c6c5b6
      https://github.com/llvm/llvm-project/commit/d038bb196c51dcf80cbe771f4229b4e227c6c5b6
  Author: Ben Langmuir <blangmuir at apple.com>
  Date:   2022-08-05 (Fri, 05 Aug 2022)

  Changed paths:
    M clang/lib/Basic/FileManager.cpp
    M clang/unittests/Basic/FileManagerTest.cpp

  Log Message:
  -----------
  [clang] Fix redirection behaviour for cached FileEntryRef

In 6a79e2ff1989b we changed Filemanager::getEntryRef() to return the
redirecting FileEntryRef instead of looking through the redirection.
This commit fixes the case when looking up a cached file path to also
return the redirecting FileEntryRef. This mainly affects the behaviour
of calling getNameAsRequested() on the resulting entry ref.

Differential Revision: https://reviews.llvm.org/D131273




More information about the All-commits mailing list