Skip to content

Commit beca1b5

Browse files
committed
Fixed error handling when parsing non-existent libraries.
1 parent 4fcfe4e commit beca1b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CppParser/Parser.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4368,7 +4368,7 @@ ParserResult* Parser::ParseLibrary(const std::string& File)
43684368
break;
43694369
}
43704370

4371-
if (FileEntry.empty())
4371+
if (FileEntry.empty() || !llvm::sys::fs::exists(FileEntry))
43724372
{
43734373
res->kind = ParserResultKind::FileNotFound;
43744374
return res;

0 commit comments

Comments
 (0)