Skip to content

Commit 8e977e4

Browse files
author
Aleksei.Glushko
committed
Revert "Merge pull request llvm#3221 from apple/eng/D97850-next"
The reverted commit causes a PCH handling bug on Linux (KT-75560). This reverts commit b72d76f, reversing changes made to 80d1c85.
1 parent 8bf7687 commit 8e977e4

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Diff for: clang/lib/Serialization/ModuleManager.cpp

-9
Original file line numberDiff line numberDiff line change
@@ -445,15 +445,6 @@ bool ModuleManager::lookupModuleFile(StringRef FileName, off_t ExpectedSize,
445445
File = FileMgr.getOptionalFileRef(FileName, /*OpenFile=*/true,
446446
/*CacheFailure=*/false);
447447

448-
#if !defined(__APPLE__)
449-
if (File) {
450-
// On Linux ext4 FileManager's inode caching system does not
451-
// provide us correct behaviour for ModuleCache directories.
452-
// inode can be reused after PCM delete resulting in cache misleading.
453-
File = FileMgr.getBypassFile(*File);
454-
}
455-
#endif
456-
457448
// If the file is known to the module cache but not in the filesystem, it is
458449
// a memory buffer. Create a virtual file for it.
459450
if (!File) {

0 commit comments

Comments
 (0)