From beca1b5942fd0fbcf44a310046b5276d22165c6d Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Wed, 23 Jan 2019 14:15:58 +0000 Subject: [PATCH] Fixed error handling when parsing non-existent libraries. --- src/CppParser/Parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CppParser/Parser.cpp b/src/CppParser/Parser.cpp index 919e0e0a..a7cbfe63 100644 --- a/src/CppParser/Parser.cpp +++ b/src/CppParser/Parser.cpp @@ -4368,7 +4368,7 @@ ParserResult* Parser::ParseLibrary(const std::string& File) break; } - if (FileEntry.empty()) + if (FileEntry.empty() || !llvm::sys::fs::exists(FileEntry)) { res->kind = ParserResultKind::FileNotFound; return res;