mirror of https://github.com/microsoft/clang.git
Fix a bug preventing the cause for a module file-not-found from being displayed
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280010 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fb7704603f
commit
e299f547a3
|
@ -3757,7 +3757,7 @@ ASTReader::ReadASTCore(StringRef FileName,
|
|||
|
||||
// Otherwise, return an error.
|
||||
Diag(diag::err_module_file_not_found) << moduleKindForDiagnostic(Type)
|
||||
<< FileName << ErrorStr.empty()
|
||||
<< FileName << !ErrorStr.empty()
|
||||
<< ErrorStr;
|
||||
return Failure;
|
||||
|
||||
|
|
|
@ -167,7 +167,7 @@
|
|||
// RUN: -fmodule-file=%t/nonexistent.pcm \
|
||||
// RUN: %s 2>&1 | FileCheck --check-prefix=CHECK-NO-FILE %s
|
||||
//
|
||||
// CHECK-NO-FILE: fatal error: module file '{{.*}}nonexistent.pcm' not found
|
||||
// CHECK-NO-FILE: fatal error: module file '{{.*}}nonexistent.pcm' not found: module file not found
|
||||
|
||||
// RUN: mv %t/a.pcm %t/a-tmp.pcm
|
||||
// RUN: not %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \
|
||||
|
|
Loading…
Reference in New Issue