Skip to content

Commit

Permalink
Fixed error handling when parsing non-existent libraries.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao committed Jan 23, 2019
1 parent 4fcfe4e commit beca1b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CppParser/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit beca1b5

Please sign in to comment.