Skip to content

Commit 0f0cec4

Browse files
bnbarhamAnthonyLatsis
authored andcommitted
Revert "[Modules] Process include files changes (llvm#90319)"
This reverts commit 9a9cff1, which combined with CAS (where every file has a 0 mtime), causes content validation to run on every input file. (cherry picked from commit ffe014a)
1 parent 0ee6fb9 commit 0f0cec4

File tree

2 files changed

+0
-41
lines changed

2 files changed

+0
-41
lines changed

clang/lib/Serialization/ASTReader.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2862,14 +2862,6 @@ InputFile ASTReader::getInputFile(ModuleFile &F, unsigned ID, bool Complain) {
28622862
F.StandardCXXModule && FileChange.Kind == Change::None)
28632863
FileChange = HasInputContentChanged(FileChange);
28642864

2865-
// When we have StoredTime equal to zero and ValidateASTInputFilesContent,
2866-
// it is better to check the content of the input files because we cannot rely
2867-
// on the file modification time, which will be the same (zero) for these
2868-
// files.
2869-
if (!StoredTime && ValidateASTInputFilesContent &&
2870-
FileChange.Kind == Change::None)
2871-
FileChange = HasInputContentChanged(FileChange);
2872-
28732865
// For an overridden file, there is nothing to validate.
28742866
if (!Overridden && FileChange.Kind != Change::None) {
28752867
if (Complain) {

clang/test/Modules/implicit-module-no-timestamp.cpp

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)