================
@@ -5135,9 +5135,16 @@ ASTReader::ReadASTCore(StringRef FileName,
return OutOfDate;
// Otherwise, return an error.
- Diag(diag::err_ast_file_out_of_date)
- << moduleKindForDiagnostic(Type) << FileName << !ErrorStr.empty()
- << ErrorStr;
+ if (ImportedBy) {
----------------
ChuanqiXu9 wrote:
> If A.pcm has been rebuilt or changed since B.pcm was produced, the on-disk
> size/signature of A no longer matches what B recorded.
This is not the case for named module, we didn't record the signature/size in
named module.
https://github.com/llvm/llvm-project/pull/167713
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits