[clang] update diagnostic to say 'modification time' instead of mtime, NFC (#139637)

This commit is contained in:
Cyndy Ishida 2025-05-12 17:15:37 -07:00 committed by GitHub
parent e039d16ee5
commit e953487380
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -124,9 +124,9 @@ ModuleManager::addModule(StringRef FileName, ModuleKind Type,
// Note: ExpectedSize and ExpectedModTime will be 0 for MK_ImplicitModule // Note: ExpectedSize and ExpectedModTime will be 0 for MK_ImplicitModule
// when using an ASTFileSignature. // when using an ASTFileSignature.
if (lookupModuleFile(FileName, ExpectedSize, ExpectedModTime, Entry)) { if (lookupModuleFile(FileName, ExpectedSize, ExpectedModTime, Entry)) {
ErrorStr = IgnoreModTime ErrorStr = IgnoreModTime ? "module file has a different size than expected"
? "module file has a different size than expected" : "module file has a different size or "
: "module file has a different size or mtime than expected"; "modification time than expected";
return OutOfDate; return OutOfDate;
} }