forked from OSchip/llvm-project
Fix a bug preventing the cause of a module-out-of-date error from being printed
llvm-svn: 280009
This commit is contained in:
parent
7060af9d22
commit
9a06a882bc
|
@ -3769,7 +3769,7 @@ ASTReader::ReadASTCore(StringRef FileName,
|
|||
|
||||
// Otherwise, return an error.
|
||||
Diag(diag::err_module_file_out_of_date) << moduleKindForDiagnostic(Type)
|
||||
<< FileName << ErrorStr.empty()
|
||||
<< FileName << !ErrorStr.empty()
|
||||
<< ErrorStr;
|
||||
return Failure;
|
||||
}
|
||||
|
|
|
@ -199,6 +199,6 @@
|
|||
// RUN: -fmodule-file=%t/c.pcm \
|
||||
// RUN: %s -DHAVE_A -DHAVE_B -DHAVE_C 2>&1 | FileCheck --check-prefix=CHECK-MISMATCHED-B %s
|
||||
//
|
||||
// CHECK-MISMATCHED-B: fatal error: module file '{{.*}}b.pcm' is out of date and needs to be rebuilt
|
||||
// CHECK-MISMATCHED-B: fatal error: module file '{{.*}}b.pcm' is out of date and needs to be rebuilt: module file out of date
|
||||
// CHECK-MISMATCHED-B-NEXT: note: imported by module 'c'
|
||||
// CHECK-MISMATCHED-B-NOT: note:
|
||||
|
|
Loading…
Reference in New Issue