diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2016-06-04 01:13:22 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2016-06-04 01:13:22 +0000 |
commit | 4a52222c9d2e1ea2960b11ce141a506da6a7c14b (patch) | |
tree | 8a05e820fd362a7791d60d8744bb6424c74e0861 /clang/lib/Frontend/CompilerInstance.cpp | |
parent | 7cb374882d3754d445c9adfd6255a8292ce3353b (diff) | |
download | llvm-4a52222c9d2e1ea2960b11ce141a506da6a7c14b.zip llvm-4a52222c9d2e1ea2960b11ce141a506da6a7c14b.tar.gz llvm-4a52222c9d2e1ea2960b11ce141a506da6a7c14b.tar.bz2 |
[Modules] Improve diagnostics for LockFileManager errors
Uses error message now provided by LockFileManager in LLVM r271755.
rdar://problem/26529101
llvm-svn: 271758
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 5648b90..64f571e 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -1086,7 +1086,7 @@ static bool compileAndLoadModule(CompilerInstance &ImportingInstance, switch (Locked) { case llvm::LockFileManager::LFS_Error: Diags.Report(ModuleNameLoc, diag::err_module_lock_failure) - << Module->Name; + << Module->Name << Locked.getErrorMessage(); return false; case llvm::LockFileManager::LFS_Owned: |