Browse Source

Checked if a library exists before trying to parse it.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/642/head
Dimitar Dobrev 9 years ago
parent
commit
6821e983a6
  1. 2
      src/CppParser/Parser.cpp

2
src/CppParser/Parser.cpp

@ -3392,7 +3392,7 @@ ParserResult* Parser::ParseLibrary(const std::string& File, ParserResult* res) @@ -3392,7 +3392,7 @@ ParserResult* Parser::ParseLibrary(const std::string& File, ParserResult* res)
llvm::SmallString<256> Path(LibDir);
llvm::sys::path::append(Path, File);
if (!(FileEntry = Path.str()).empty())
if (!(FileEntry = Path.str()).empty() && llvm::sys::fs::exists(FileEntry))
break;
}

Loading…
Cancel
Save