diff --git a/clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h b/clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h index 3981ccfd98c062..855ab0626b3dd2 100644 --- a/clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h +++ b/clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h @@ -242,7 +242,7 @@ class DependencyScanningWorkerFilesystem : public llvm::vfs::ProxyFileSystem { DependencyScanningFilesystemSharedCache &SharedCache; /// The local cache is used by the worker thread to cache file system queries /// locally instead of querying the global cache every time. - DependencyScanningFilesystemLocalCache Cache; + DependencyScanningFilesystemLocalCache LocalCache; /// The optional mapping structure which records information about the /// excluded conditional directive skip mappings that are used by the /// currently active preprocessor. diff --git a/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp b/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp index eb99fb11fba373..664c118473b944 100644 --- a/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp +++ b/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp @@ -161,7 +161,7 @@ DependencyScanningWorkerFilesystem::getOrCreateFileSystemEntry( StringRef Filename) { bool ShouldBeMinimized = shouldMinimize(Filename); - const auto *Entry = Cache.getCachedEntry(Filename); + const auto *Entry = LocalCache.getCachedEntry(Filename); if (Entry && !Entry->needsUpdate(ShouldBeMinimized)) return EntryRef(ShouldBeMinimized, Entry);