This is an archive of the discontinued LLVM Phabricator instance.

[clang][deps] NFC: Simplify handling of cached FS errors
ClosedPublic

Authored by jansvoboda11 on Dec 17 2021, 5:19 AM.

Details

Summary

The return types of some CachedFileSystemEntry member function are needlessly complex.

This patch attempts to simplify the code by unwrapping cached entries that represent errors early, and then asserting !isError().

Diff Detail

Event Timeline

jansvoboda11 requested review of this revision.Dec 17 2021, 5:19 AM
jansvoboda11 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 17 2021, 5:19 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Add more assertions.

This revision is now accepted and ready to land.Dec 20 2021, 9:32 AM
This revision was landed with ongoing or failed builds.Jan 21 2022, 4:04 AM
This revision was automatically updated to reflect the committed changes.