mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 18:11:19 +00:00
Fix a bug preventing the cause for a module file-not-found from being displayed
llvm-svn: 280010
This commit is contained in:
parent
9a06a882bc
commit
b3b5a7362c
@ -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…
x
Reference in New Issue
Block a user