[clang] d8a3538 - [clang][deps] NFC: Remove else after early return
Jan Svoboda via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 26 03:18:42 PST 2021
Author: Jan Svoboda
Date: 2021-11-26T12:18:37+01:00
New Revision: d8a35387881bf408c19deeba7b5e3648dbbf467c
URL: https://github.com/llvm/llvm-project/commit/d8a35387881bf408c19deeba7b5e3648dbbf467c
DIFF: https://github.com/llvm/llvm-project/commit/d8a35387881bf408c19deeba7b5e3648dbbf467c.diff
LOG: [clang][deps] NFC: Remove else after early return
Added:
Modified:
clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
Removed:
################################################################################
diff --git a/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp b/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
index 40e8bd2b87760..5f3e6480eba48 100644
--- a/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
+++ b/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
@@ -191,8 +191,7 @@ DependencyScanningWorkerFilesystem::getOrCreateFileSystemEntry(
// files before building them, and then looks for them again. If we
// cache the stat failure, it won't see them the second time.
return MaybeStatus.getError();
- else
- CacheEntry = CachedFileSystemEntry(MaybeStatus.getError());
+ CacheEntry = CachedFileSystemEntry(MaybeStatus.getError());
} else if (MaybeStatus->isDirectory())
CacheEntry = CachedFileSystemEntry::createDirectoryEntry(
std::move(*MaybeStatus));
More information about the cfe-commits
mailing list