This is an archive of the discontinued LLVM Phabricator instance.

[clang] Fix redirection behaviour for cached FileEntryRef
ClosedPublic

Authored by benlangmuir on Aug 5 2022, 11:02 AM.

Details

Summary

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.

Diff Detail

Event Timeline

benlangmuir created this revision.Aug 5 2022, 11:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 5 2022, 11:02 AM
benlangmuir requested review of this revision.Aug 5 2022, 11:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 5 2022, 11:02 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
bnbarham accepted this revision.Aug 5 2022, 12:06 PM
This revision is now accepted and ready to land.Aug 5 2022, 12:06 PM