diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2022-01-21 10:54:27 +0100 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2022-01-21 13:04:25 +0100 |
commit | ced077e1ba52ec2937aab538e9b6fa5149f8c567 (patch) | |
tree | da6587c860fd48f41c2b5a3dcac2782985a86f18 /llvm/lib/Support/TargetParser.cpp | |
parent | 4727d29d908f9dd608dd97a58c0af1ad579fd3ca (diff) | |
download | llvm-ced077e1ba52ec2937aab538e9b6fa5149f8c567.zip llvm-ced077e1ba52ec2937aab538e9b6fa5149f8c567.tar.gz llvm-ced077e1ba52ec2937aab538e9b6fa5149f8c567.tar.bz2 |
[clang][deps] NFC: Simplify handling of cached FS errors
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()`.
Reviewed By: dexonsmith
Differential Revision: https://reviews.llvm.org/D115935
Diffstat (limited to 'llvm/lib/Support/TargetParser.cpp')
0 files changed, 0 insertions, 0 deletions